Skip to content

Commit

Permalink
Fix current casted spell type range
Browse files Browse the repository at this point in the history
  • Loading branch information
boxa committed May 20, 2017
1 parent 8182217 commit a17dbd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/AI/EventAI/CreatureEventAIMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,9 +900,9 @@ void CreatureEventAIMgr::LoadCreatureEventAI_Scripts()
case ACTION_T_PAUSE_WAYPOINTS:
break;
case ACTION_T_INTERRUPT_SPELL:
if (action.interruptSpell.currentSpellType > CURRENT_MAX_SPELL)
if (action.interruptSpell.currentSpellType >= CURRENT_MAX_SPELL)
{
sLog.outErrorEventAI("Event %u Action %u uses invalid current spell type %u (must be smaller or equal to %u)", i, j + 1, action.interruptSpell.currentSpellType, CURRENT_MAX_SPELL);
sLog.outErrorEventAI("Event %u Action %u uses invalid current spell type %u (must be smaller or equal to %u)", i, j + 1, action.interruptSpell.currentSpellType, CURRENT_MAX_SPELL - 1);
continue;
}
break;
Expand Down

1 comment on commit a17dbd8

@Grz3s
Copy link
Member

@Grz3s Grz3s commented on a17dbd8 May 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally all checks ok 👍
:)

Please sign in to comment.