diff options
| author | Vincent-Michael <vincent_michael@gmx.de> | 2016-09-03 16:36:41 +0200 |
|---|---|---|
| committer | Vincent-Michael <vincent_michael@gmx.de> | 2016-09-03 16:38:04 +0200 |
| commit | 8da93b67345b6342db1540690bc935c56261e063 (patch) | |
| tree | f644ddcfd11ec12ef4e5557a587ba4543f2bfe2b /src/server/game/Globals/ObjectMgr.cpp | |
| parent | ad52ee8e2569576b395b20f543c5fe0e41bc31b9 (diff) | |
Core/PacketIO: Updated SMSG_QUERY_CREATURE_RESPONSE for 7.0.3
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
| -rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index e84d2d97939..b3a5919fa15 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -479,7 +479,7 @@ void ObjectMgr::LoadCreatureTemplate(Field* fields) creatureTemplate.minlevel = fields[15].GetInt16(); creatureTemplate.maxlevel = fields[16].GetInt16(); creatureTemplate.expansion = fields[17].GetInt16(); - creatureTemplate.HealthScalingExpansion = fields[18].GetUInt32(); + creatureTemplate.HealthScalingExpansion = fields[18].GetInt32(); creatureTemplate.RequiredExpansion = fields[19].GetUInt32(); creatureTemplate.VignetteID = fields[20].GetUInt32(); creatureTemplate.faction = fields[21].GetUInt16(); @@ -971,13 +971,13 @@ void ObjectMgr::CheckCreatureTemplate(CreatureTemplate const* cInfo) const_cast<CreatureTemplate*>(cInfo)->expansion = 0; } - if (cInfo->HealthScalingExpansion > MAX_EXPANSIONS) + if ((cInfo->HealthScalingExpansion > (MAX_EXPANSIONS - 1)) && cInfo->HealthScalingExpansion != EXPANSION_LEVEL_CURRENT) { TC_LOG_ERROR("sql.sql", "Table `creature_template` lists creature (Entry: %u) with `HealthScalingExpansion` %u. Ignored and set to 0.", cInfo->Entry, cInfo->HealthScalingExpansion); const_cast<CreatureTemplate*>(cInfo)->HealthScalingExpansion = 0; } - if (cInfo->RequiredExpansion > MAX_EXPANSIONS) + if (cInfo->RequiredExpansion > (MAX_EXPANSIONS - 1)) { TC_LOG_ERROR("sql.sql", "Table `creature_template` lists creature (Entry: %u) with `RequiredExpansion` %u. Ignored and set to 0.", cInfo->Entry, cInfo->RequiredExpansion); const_cast<CreatureTemplate*>(cInfo)->RequiredExpansion = 0; |
