aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-08-31 21:59:22 +0200
committerShauren <shauren.trinity@gmail.com>2021-08-31 21:59:22 +0200
commitc3455595fcf498975b1b5c0b38e5aa467dbfdcbb (patch)
treefa6d3ebe07802fa95ac64f2a1b8b46f3185cc096 /src
parent6ad58d604a63bacc13ee92c525189931d41d1e91 (diff)
Core/Misc: Fixed effect index check in ObjectMgr::LoadSpellScripts
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 8a3eb210e22..777fa67ea04 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -5734,7 +5734,7 @@ void ObjectMgr::LoadSpellScripts()
}
SpellEffIndex i = SpellEffIndex((uint32(itr->first) >> 24) & 0x000000FF);
- if (uint32(i) > MAX_SPELL_EFFECTS)
+ if (uint32(i) >= MAX_SPELL_EFFECTS)
{
TC_LOG_ERROR("sql.sql", "Table `spell_scripts` has too high effect index %u for spell (Id: %u) as script id", uint32(i), spellId);
continue;