aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-12 07:03:23 -0500
committermegamage <none@none>2009-08-12 07:03:23 -0500
commitda9de7135d049d746d3f281cd9e9f2fa213f4326 (patch)
treedc4265453ae2b64101afe03b9c771252e152226f /src
parent7a548ff9d57f8db6e4296177470cd26d86fe2779 (diff)
*Fix a crash caused by ConvertCorpseForPlayer
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/ObjectAccessor.cpp1
1 files changed, 1 insertions, 0 deletions
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));