0c2da4fb81
Switching spells causes ArrayIndexOutOfBoundsException: -1 when the next spell is empty.I made a simple fix