From 20e256a11d82f8fde105bf40bc3eb9549e92dcdd Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Mon, 15 Jan 2024 15:09:00 +0100 Subject: Core/Creatures: do not allow HealthScalingExpansion values beyond our current expansion --- src/server/game/Globals/ObjectMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3