aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-06-20 00:02:34 -0300
committerariel- <ariel-@users.noreply.github.com>2017-06-20 00:02:34 -0300
commitfaf299459bb96355b8c5d86add3a22ae4bcd0491 (patch)
tree4c2fc0c91fbd55f27c74f7f5e4d42beb36c1c1f3 /src
parentc106177f200a919b2138a057c0d95fa2dab83757 (diff)
Core/Globals: fix VS2015 build
Diffstat (limited to 'src')
-rw-r--r--src/server/game/DataStores/DBCStores.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/DataStores/DBCStores.cpp b/src/server/game/DataStores/DBCStores.cpp
index ce3463c5f5c..e72408205c0 100644
--- a/src/server/game/DataStores/DBCStores.cpp
+++ b/src/server/game/DataStores/DBCStores.cpp
@@ -455,8 +455,9 @@ void LoadDBCStores(const std::string& dataPath)
}
for (PvPDifficultyEntry const* entry : sPvPDifficultyStore)
- if (entry->bracketId > MAX_BATTLEGROUND_BRACKETS)
- ASSERT(false && "Need update MAX_BATTLEGROUND_BRACKETS by DBC data");
+ {
+ ASSERT(entry->bracketId < MAX_BATTLEGROUND_BRACKETS, "PvpDifficulty bracket (%d) exceeded max allowed value (%d)", entry->bracketId, MAX_BATTLEGROUND_BRACKETS);
+ }
for (SkillRaceClassInfoEntry const* entry : sSkillRaceClassInfoStore)
if (sSkillLineStore.LookupEntry(entry->SkillId))