From 296771f7e7207ece5d88dce853f95a0c898d67f6 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 12 Aug 2009 07:10:07 -0500 Subject: *SetMap for corpse in Create function as other objects. --HG-- branch : trunk --- src/game/ObjectAccessor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game/ObjectAccessor.cpp') diff --git a/src/game/ObjectAccessor.cpp b/src/game/ObjectAccessor.cpp index 4ce90d57219..a1c7395ad07 100644 --- a/src/game/ObjectAccessor.cpp +++ b/src/game/ObjectAccessor.cpp @@ -344,8 +344,7 @@ ObjectAccessor::ConvertCorpseForPlayer(uint64 player_guid, bool insignia) { // Create bones, don't change Corpse bones = new Corpse; - bones->Create(corpse->GetGUIDLow()); - bones->SetMap(map); + bones->Create(corpse->GetGUIDLow(), 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