out of bound (#2723)

This commit is contained in:
Aeadoin 2023-01-11 17:54:42 -05:00 committed by GitHub
parent 46fa2e589e
commit 2587a7fed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1932,7 +1932,7 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
effect_value = se_base;
limit_value = se_limit;
max_value = se_max;
i = EFFECT_COUNT; //End the loop
i = (EFFECT_COUNT - 1); // AISpellEffects do a single pass
}
switch (spell_effect_id)