*Fix a crash caused by corpse.
--HG-- branch : trunk
This commit is contained in:
1 parent
7cc1b6a0d1
commit
c84f63d431
1 file changed
+2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user