aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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))