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 45994a177c128dc83ea01b0697377f7b74b5c4ba)
This commit is contained in:
1 parent
b1b72dafd0
commit
c7bad70e55
3 files changed
+9
-11
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user