Core/Corpses: Fixed crash during loading corpses
Port From (https://github.com/TrinityCore/TrinityCore/commit/49f8b1dbb4e5468b23b678e327feb3d4e750ecb2)
This commit is contained in:
@@ -3326,6 +3326,10 @@ namespace Game.Maps
|
||||
} while (phaseResult.NextRow());
|
||||
}
|
||||
|
||||
stmt = DB.Characters.GetPreparedStatement(CharStatements.SEL_CORPSE_CUSTOMIZATIONS);
|
||||
stmt.AddValue(0, GetId());
|
||||
stmt.AddValue(1, GetInstanceId());
|
||||
|
||||
// 0 1 2
|
||||
// SELECT cc.ownerGuid, cc.chrCustomizationOptionID, cc.chrCustomizationChoiceID FROM corpse_customizations cc LEFT JOIN corpse c ON cc.ownerGuid = c.guid WHERE c.mapId = ? AND c.instanceId = ?
|
||||
SQLResult customizationResult = DB.Characters.Query(stmt);
|
||||
|
||||
Reference in New Issue
Block a user