*Fix a crash caused by corpse.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-13 10:07:51 -05:00
parent 7cc1b6a0d1
commit c84f63d431

View File

@@ -267,6 +267,8 @@ ObjectAccessor::RemoveCorpse(Corpse *corpse)
objmgr.DeleteCorpseCellData(corpse->GetMapId(), cell_id, corpse->GetOwnerGUID());
corpse->RemoveFromWorld();
if(corpse->FindMap())
corpse->ResetMap();
i_player2corpse.erase(iter);
}