Crash in Horde battle

I wiped out the opposing creatures at start of combat. It then switched to my creature’s turn, without new opponents spawning and me facing an empty board. Upon choosing “Inspect”, this is what happened:


############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_battletargetselector:

Variable obj_misc.(100055, -2147483648) not set before reading it.
at gml_Script_bc_TargetSingleEnemy
############################################################################################

stack frame is
gml_Script_bc_TargetSingleEnemy (line -1)
gml_Object_obj_battletargetselector_Draw_64

0.23.7
Windows 10