Core/Misc: Various crash fixes (#19059)

* Replaced some FindPlayer calls with GetPlayer
Fixed some more crashes

* Correction
This commit is contained in:
xinef1
2017-02-05 23:42:31 +01:00
committed by Shauren
parent 075f0e26cc
commit 14dfc377b4
22 changed files with 79 additions and 60 deletions

View File

@@ -3512,6 +3512,11 @@ void BattlegroundMap::RemoveAllPlayers()
player->TeleportTo(player->GetBattlegroundEntryPoint());
}
Player* Map::GetPlayer(ObjectGuid const& guid)
{
return ObjectAccessor::GetPlayer(this, guid);
}
Corpse* Map::GetCorpse(ObjectGuid const& guid)
{
return _objectsStore.Find<Corpse>(guid);