aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAokromes <Aokromes@users.noreply.github.com>2014-02-17 14:29:36 +0100
committerAokromes <Aokromes@users.noreply.github.com>2014-02-17 14:29:36 +0100
commit61096a6a9381577e913b8e47e37c8d5065e23735 (patch)
treea09a96434c4fb989b41870cc3e0a4644317fdefe /src
parent52ac6567926236f75c07454dc466b00882c318d7 (diff)
parentc223b88da2500f9fa23b26ab08d6a19dd78849e3 (diff)
Merge pull request #11616 from Ascathor/master
Core/LFR: Fix a theoretical error with item_level
Diffstat (limited to 'src')
-rw-r--r--src/server/game/DungeonFinding/LFGMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp
index 1665eae0fcc..822ae904ef1 100644
--- a/src/server/game/DungeonFinding/LFGMgr.cpp
+++ b/src/server/game/DungeonFinding/LFGMgr.cpp
@@ -405,7 +405,7 @@ void LFGMgr::InitializeLockedDungeons(Player* player, uint8 level /* = 0 */)
lockData = LFG_LOCKSTATUS_NOT_IN_SEASON;
else if (AccessRequirement const* ar = sObjectMgr->GetAccessRequirement(dungeon->map, Difficulty(dungeon->difficulty)))
{
- if (player->GetAverageItemLevel() < ar->item_level)
+ if (ar->item_level && player->GetAverageItemLevel() < ar->item_level)
lockData = LFG_LOCKSTATUS_TOO_LOW_GEAR_SCORE;
else if (ar->achievement && !player->HasAchieved(ar->achievement))
lockData = LFG_LOCKSTATUS_MISSING_ACHIEVEMENT;