quattj
Member
I'm trying to debug my program. At a specific point, I keep getting this error, but ONLY when running the debugger, which is making it incredibly difficult to... debug.
global.percussion_names_XG_SFX[128, 128] is a 2D array that has been previously initialized using a nested for loop. Each cell contains a null string "".
set_num = 0 when I get the error.
new_name = SG SFX 1 when I get the error (it is a string)
If I am not in the debugger, or I do not step through this section, the name SG SFX 1 gets assigned to cell [0, 128] with no issue.
What gives?
GML:
___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object ctrl_main:
Variable Index [-1] out of range [129]
at gml_Script_import_names_XG (line 163) - global.percussion_names_XG_SFX[set_num, 128] = new_name;
############################################################################################
gml_Script_import_names_XG (line 163)
gml_Script_init_instrument_names (line 23) - import_names_XG();
gml_Object_ctrl_main_Create_0 (line 57) - init_instrument_names();
set_num = 0 when I get the error.
new_name = SG SFX 1 when I get the error (it is a string)
If I am not in the debugger, or I do not step through this section, the name SG SFX 1 gets assigned to cell [0, 128] with no issue.
What gives?