crash trying to cast haste (4.0)


############################################################################################
FATAL ERROR in
action number 1
of Key Press Event for E-key Key
for object obj_battlecontroller:

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

stack frame is
gml_Script_scr_CritHasCondition (line 0)
gml_Object_obj_battlecontroller_KeyPress_69

Is this happening every time you try to cast Haste, or does it happen at random?

It hasn’t happened any more.

It seems to happen after the previous creature has lost its turn due to an enemy’s trait and I cast haste.

also after the enemy uses snowstorm or judgement.