Core/Players: Check if player can enter the instance during login before trying to add him to map

* Fixes name displaying as "Unknown"

(cherry picked from commit 45994a177c)
This commit is contained in:
Shauren
2015-10-15 23:29:19 +02:00
parent b1b72dafd0
commit c7bad70e55
3 changed files with 9 additions and 11 deletions

View File

@@ -887,7 +887,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
}
}
if (!pCurrChar->GetMap()->AddPlayerToMap(pCurrChar) || !pCurrChar->CheckInstanceLoginValid())
if (!pCurrChar->GetMap()->AddPlayerToMap(pCurrChar))
{
AreaTrigger const* at = sObjectMgr->GetGoBackTrigger(pCurrChar->GetMapId());
if (at)