mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 16:16:27 +00:00
refactor(Core): Clean (#22583)
This commit is contained in:
@@ -223,7 +223,7 @@ Map::EnterState MapMgr::PlayerCannotEnter(uint32 mapid, Player* player, bool log
|
||||
{
|
||||
uint32 destInstId = sInstanceSaveMgr->PlayerGetDestinationInstanceId(player, mapid, targetDifficulty);
|
||||
if (destInstId)
|
||||
if (Map* boundMap = sMapMgr->FindMap(mapid, destInstId))
|
||||
if (Map* boundMap = FindMap(mapid, destInstId))
|
||||
if (Map::EnterState denyReason = boundMap->CannotEnter(player, loginCheck))
|
||||
return denyReason;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user