Crash after using trap against griffons

Windows 10, Siralim v0.1.12. Fighting against 6 griffons, used trap on one of them, game crashed on an assault griffon’s turn, presumably trying to check the race of a non-existant monster.


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

Variable obj_battlecontroller.slot(100064, -2147483648) not set before reading it.
at gml_Script_bc_CountRace
############################################################################################

stack frame is
gml_Script_bc_CountRace (line -1)
gml_Script_bc_CreatureEndOfTurn
gml_Object_obj_battlecontroller_Step_0

Found the problem, thanks!