mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
*Fix a crash caused by corpse.
--HG-- branch : trunk
This commit is contained in:
@@ -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