fix(Core/Wintergrasp): Leaving Wintergrasp with the minimap button (#2018)

This commit is contained in:
Poszer
2019-07-04 09:01:24 +02:00
committed by Stoabrogga
parent 5086af8190
commit e14964c52b
3 changed files with 10 additions and 2 deletions

View File

@@ -1927,9 +1927,9 @@ void WorldSession::HandleHearthAndResurrect(WorldPacket& /*recv_data*/)
if (_player->IsInFlight())
return;
if(/*Battlefield* bf = */sBattlefieldMgr->GetBattlefieldToZoneId(_player->GetZoneId()))
if(Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(_player->GetZoneId()))
{
// bf->PlayerAskToLeave(_player); FIXME
bf->PlayerAskToLeave(_player);
return;
}