*SetMap for corpse in Create function as other objects.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-12 07:10:07 -05:00
parent da9de7135d
commit 296771f7e7
3 changed files with 4 additions and 4 deletions

View File

@@ -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));