mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 20:32:21 +01:00
Core/Misc: Various crash fixes (#19059)
* Replaced some FindPlayer calls with GetPlayer Fixed some more crashes * Correction
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user