Starvation crash

Sometimes after a battle I can choose to give the meat to an enemy creature if my team has less than 6 creatures, which crashes the game.


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

Variable obj_battlecontroller.critconstant(100023, -2147483648) not set before reading it.
at gml_Object_obj_battlecontroller_KeyPress_69
############################################################################################