diff options
author | XTZGZoReX <none@none> | 2010-01-15 19:50:27 +0100 |
---|---|---|
committer | XTZGZoReX <none@none> | 2010-01-15 19:50:27 +0100 |
commit | 26e11448dddc870c848f26462339ffdffd19c078 (patch) | |
tree | efbdc5026969743a7a57bd1849d53a483bcb2da5 /src/game/ObjectMgr.cpp | |
parent | 0451e45e06a820e8ab769a11495c134c50cf1164 (diff) |
* Update structure for SMSG_ADDON_INFO and add some sort of basic handling for incorrect addon CRCs (anti-cheating).
* Fix CRLF in MovementHandler.cpp.
* Move some handlers/senders to correct place.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 83fbc7891e7..0611329ce12 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -8941,11 +8941,11 @@ void ObjectMgr::LoadCreatureClassLevelStats() stats.BaseMana = fields[5].GetUInt32(); stats.BaseArmor = fields[6].GetUInt32(); - if (stats.Level > MAX_LEVEL) + if (stats.Level > STRONG_MAX_LEVEL) { sLog.outErrorDb("Creature base stats for class %u has invalid level %u (max is %u) - set to %u", - stats.Class, stats.Level, MAX_LEVEL, DEFAULT_MAX_LEVEL); - stats.Level = DEFAULT_MAX_LEVEL; + stats.Class, stats.Level, STRONG_MAX_LEVEL, STRONG_MAX_LEVEL); + stats.Level = STRONG_MAX_LEVEL; } if (!stats.Class || ((1 << (stats.Class - 1)) & CLASSMASK_ALL_CREATURES) == 0) |