Crash in realm when bumping into enemy

  1. Windows
  2. 1.3.8
  3. Vertraag’s Realm, bumped into enemy. Before battle window became visible got the following crash:

############################################################################################
FATAL ERROR in
action number 1
of Create Event
for object obj_battlecontroller:

Variable obj_battlecontroller.xp(100222, -2147483648) not set before reading it.
at gml_Object_obj_battlecontroller_Create_0
############################################################################################

stack frame is
gml_Object_obj_battlecontroller_Create_0 (line -1)
called from - gml_Script_instance_create (line -1) -
gml_Room_battle_Create

This crash still exists as of 1.3.9
It is probably caused by bumping into a creature that triggers HoD as well as one that doesn’t at the same time.


############################################################################################
FATAL ERROR in
action number 1
of Create Event
for object obj_battlecontroller:

Variable obj_battlecontroller.xp(100222, -2147483648) not set before reading it.
at gml_Object_obj_battlecontroller_Create_0
############################################################################################

stack frame is
gml_Object_obj_battlecontroller_Create_0 (line -1)
called from - gml_Script_instance_create (line -1) -
gml_Room_battle_Create