diff options
-rw-r--r-- | src/server/game/Maps/MapManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Maps/MapManager.cpp b/src/server/game/Maps/MapManager.cpp index 7f83cb1c054..b2e42a91bb8 100644 --- a/src/server/game/Maps/MapManager.cpp +++ b/src/server/game/Maps/MapManager.cpp @@ -152,10 +152,6 @@ Map::EnterState MapManager::PlayerCannotEnter(uint32 mapid, Player* player, bool if (player->IsGameMaster()) return Map::CAN_ENTER; - //Other requirements - if (!player->Satisfy(sObjectMgr->GetAccessRequirement(mapid, targetDifficulty), mapid, true)) - return Map::CANNOT_ENTER_UNSPECIFIED_REASON; - char const* mapName = entry->MapName[player->GetSession()->GetSessionDbcLocale()]; Group* group = player->GetGroup(); @@ -209,6 +205,10 @@ Map::EnterState MapManager::PlayerCannotEnter(uint32 mapid, Player* player, bool return Map::CANNOT_ENTER_TOO_MANY_INSTANCES; } + //Other requirements + if (!player->Satisfy(sObjectMgr->GetAccessRequirement(mapid, targetDifficulty), mapid, true)) + return Map::CANNOT_ENTER_UNSPECIFIED_REASON; + return Map::CAN_ENTER; } |