Core/Wintergrasp: fix leaving Wintergrasp via the minimap button.

This commit is contained in:
SnapperRy
2016-10-04 19:13:11 +02:00
parent 63215dd15a
commit b60db6c44e
3 changed files with 11 additions and 2 deletions

View File

@@ -1741,9 +1741,9 @@ void WorldSession::HandleHearthAndResurrect(WorldPacket& /*recvData*/)
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;
}