From da9de7135d049d746d3f281cd9e9f2fa213f4326 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 12 Aug 2009 07:03:23 -0500 Subject: *Fix a crash caused by ConvertCorpseForPlayer --HG-- branch : trunk --- src/game/ObjectAccessor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/game/ObjectAccessor.cpp b/src/game/ObjectAccessor.cpp index 43d3d0a1534..4ce90d57219 100644 --- a/src/game/ObjectAccessor.cpp +++ b/src/game/ObjectAccessor.cpp @@ -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)); -- cgit v1.2.3