Manage Spell Gems crash

Initially this was mistakenly posted on Siralim 1 support board, sorry

  1. Crash


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

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

stack frame is
gml_Script_bc_SpellGemGetOwner (line 0)
gml_Script_inv_SpellGemManaCost
gml_Object_obj_equipspellgems_Draw_64

  1. Opening the Manage Spell Gems menu for any creature with at least one gem equipped. Equipping a new gem on a new creature causes the same crash.

  2. Windows 7

  3. 0.0.22, the same crash occured in 0.0.21

  4. Spell Gems menu in the inventory works fine
    UPD: The crash didn’t reproduce in a new game, only in the save started in an old version
    UPD2: Turns out the crash occurs only if a Zarox Apocalypse is on the team.