diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2017-06-20 00:02:34 -0300 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2017-06-20 00:02:34 -0300 |
| commit | faf299459bb96355b8c5d86add3a22ae4bcd0491 (patch) | |
| tree | 4c2fc0c91fbd55f27c74f7f5e4d42beb36c1c1f3 | |
| parent | c106177f200a919b2138a057c0d95fa2dab83757 (diff) | |
Core/Globals: fix VS2015 build
| -rw-r--r-- | src/server/game/DataStores/DBCStores.cpp | 5 |
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)) |
