Fixed using argument0/1 instead of [0]/[1] (thanks playerdash)

This commit is contained in:
Synthasmagoria 2025-12-15 22:33:43 +00:00
commit d4e47f805c

View file

@ -2,13 +2,13 @@
if (instance_exists(objDebugInspectorControl)) { if (instance_exists(objDebugInspectorControl)) {
exit; exit;
} }
if (variable_global_exists(argument0)) { if (variable_global_exists(argument[0])) {
global.__synthasmagoria_debug_inspector_global_game_start_name = argument0; global.__synthasmagoria_debug_inspector_global_game_start_name = argument[0];
} else { } else {
show_error("Global variable '" + argument0 + "' didn't exist", false); show_error("Global variable '" + argument[0] + "' didn't exist", false);
global.__synthasmagoria_debug_inspector_global_game_start_name = "@"; global.__synthasmagoria_debug_inspector_global_game_start_name = "@";
} }
global.__synthasmagoria_debug_inspector_show_instance_vars = argument1; global.__synthasmagoria_debug_inspector_show_instance_vars = argument[1];
var _debug_key = -1; var _debug_key = -1;
if (argument_count > 2) { if (argument_count > 2) {
_debug_key = argument[2]; _debug_key = argument[2];