Game Crashed.

I was pressing and holding “E” in turbo mode during opponent’s turn when game crashed with this message.


############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_battlecontroller:

trying to index a variable which is not an array
at gml_Script_bc_CreatureCast
############################################################################################

stack frame is
gml_Script_bc_CreatureCast (line 0)
gml_Script_bc_CreatureCastSpellGem
gml_Script_bc_SpellsOnHit
gml_Script_bc_OnDefend
gml_Script_bc_CreatureDefend
gml_Script_bc_Turn
gml_Object_obj_battlecontroller_Step_0