From faf299459bb96355b8c5d86add3a22ae4bcd0491 Mon Sep 17 00:00:00 2001 From: ariel- Date: Tue, 20 Jun 2017 00:02:34 -0300 Subject: Core/Globals: fix VS2015 build --- src/server/game/DataStores/DBCStores.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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)) -- cgit v1.2.3