aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectAccessor.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-12 07:10:07 -0500
committermegamage <none@none>2009-08-12 07:10:07 -0500
commit296771f7e7207ece5d88dce853f95a0c898d67f6 (patch)
tree59c34fb981e38ca836e08ed18051543ecf75c6c9 /src/game/ObjectAccessor.cpp
parentda9de7135d049d746d3f281cd9e9f2fa213f4326 (diff)
*SetMap for corpse in Create function as other objects.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ObjectAccessor.cpp')
-rw-r--r--src/game/ObjectAccessor.cpp3
1 files changed, 1 insertions, 2 deletions
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));