Xer0botXer0
Senpai
Hi guys,
I've an object that runs a script, in the script a 2D array is looped through filtered down to particular instances, these instances are then destroyed.
The possible bug here is that the object calling the script was destroyed in the process. Right at this point:
Notice the points:
Point 1 'i' variable used for iteration, in correlation with Point 4, current 'i' value is 0.
Point 2 array being looped through is 'arr_bah_items', using 'i' as a reference you can see point 5 shows that the second dimension of the array is 8, which according to point 6 is -1 (uninitialized).
Point 3 shows (probably should've taken the shot while instance_destroy() was in focus) but anyway instance_destroy triggers on an uninitialized entry, destroying the object that's calling this script.
I've an object that runs a script, in the script a 2D array is looped through filtered down to particular instances, these instances are then destroyed.
The possible bug here is that the object calling the script was destroyed in the process. Right at this point:
Notice the points:
Point 1 'i' variable used for iteration, in correlation with Point 4, current 'i' value is 0.
Point 2 array being looped through is 'arr_bah_items', using 'i' as a reference you can see point 5 shows that the second dimension of the array is 8, which according to point 6 is -1 (uninitialized).
Point 3 shows (probably should've taken the shot while instance_destroy() was in focus) but anyway instance_destroy triggers on an uninitialized entry, destroying the object that's calling this script.