And more build errors fixed

3 errors left!

Then the <bleep> will really hit the fan!
This commit is contained in:
Charles A Edwards 2016-02-03 13:30:36 +00:00 committed by Antz
parent 4baf9907c7
commit e8d7dbb8bb
4 changed files with 21 additions and 11 deletions

View file

@ -2209,8 +2209,9 @@ namespace LuaUnit
SpellAuraHolder* holder = CreateSpellAuraHolder(spellInfo, target, unit);
for (uint32 i = 0; i < MAX_EFFECT_INDEX; ++i)
{
uint8 eff = spellInfo->Effect[i];
{
uint8 eff = (uint8)spellInfo->GetSpellEffect(SpellEffectIndex(i));
// uint8 eff = spellInfo->Effect[i]; // Effect is a member of SpellEffectIndex, nit SpellEvent
if (eff >= TOTAL_SPELL_EFFECTS)
continue;
if (IsAreaAuraEffect(eff) ||