mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/Misc: Fixed effect index check in ObjectMgr::LoadSpellScripts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user