diff options
author | Ovahlord <dreadkiller@gmx.de> | 2024-01-15 15:09:00 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-01-15 15:09:00 +0100 |
commit | 20e256a11d82f8fde105bf40bc3eb9549e92dcdd (patch) | |
tree | 61e7bfa481ac4b06ae3805d22d901602176e3afc /src/server/game/Globals/ObjectMgr.cpp | |
parent | f0b4b4cb9eabc8bc390c27fe2b2e98ef6ec86ef2 (diff) |
Core/Creatures: do not allow HealthScalingExpansion values beyond our current expansion
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index b040b78c18a..78f4c1b466a 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -1017,7 +1017,7 @@ void ObjectMgr::LoadCreatureTemplateDifficulty() creatureDifficulty.MinLevel = creatureDifficulty.MaxLevel; } - if (creatureDifficulty.HealthScalingExpansion < EXPANSION_LEVEL_CURRENT || creatureDifficulty.HealthScalingExpansion >= MAX_EXPANSIONS) + if (creatureDifficulty.HealthScalingExpansion < EXPANSION_LEVEL_CURRENT || creatureDifficulty.HealthScalingExpansion >= CURRENT_EXPANSION) { TC_LOG_ERROR("sql.sql", "Table `creature_template_difficulty` lists creature (ID: {}) with invalid `HealthScalingExpansion` {}. Ignored and set to 0.", entry, creatureDifficulty.HealthScalingExpansion); |