Core/Misc: Fixed effect index check in ObjectMgr::LoadSpellScripts

This commit is contained in:
Shauren
2021-08-31 21:59:22 +02:00
parent 6ad58d604a
commit c3455595fc

View File

@@ -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;