Core/Aura: Fixes a crash in _InitEffects.

This commit is contained in:
hondacrx
2021-01-14 11:12:07 -05:00
parent 16c72839a7
commit c5e3c4280c
2 changed files with 38 additions and 39 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ namespace Game.Spells
public void _InitEffects(uint effMask, Unit caster, int[] baseAmount)
{
// shouldn't be in constructor - functions in AuraEffect.AuraEffect use polymorphism
_effects = new AuraEffect[GetSpellInfo().GetEffects().Count];
_effects = new AuraEffect[SpellConst.MaxEffects];
foreach (SpellEffectInfo effect in GetSpellInfo().GetEffects())
{