*Fix a crash caused by ConvertCorpseForPlayer
--HG-- branch : trunk
This commit is contained in:
1 parent
7a548ff9d5
commit
da9de7135d
1 file changed
+1
@@ -345,6 +345,7 @@ ObjectAccessor::ConvertCorpseForPlayer(uint64 player_guid, bool insignia)
|
||||
// Create bones, don't change Corpse
|
||||
bones = new Corpse;
|
||||
bones->Create(corpse->GetGUIDLow());
|
||||
bones->SetMap(map);
|
||||
|
||||
for (int i = 3; i < CORPSE_END; ++i) // don't overwrite guid and object type
|
||||
bones->SetUInt32Value(i, corpse->GetUInt32Value(i));
|
||||
|
||||
Reference in new issue
Block a user