From 926ae79f2a7d8a3ceb9302048c70195d27aa355c Mon Sep 17 00:00:00 2001 From: the me Date: Tue, 16 Aug 2022 22:05:33 -0700 Subject: [PATCH] "the fix" --- eastern flames/objects/ARTICULATOR/Step_0.gml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eastern flames/objects/ARTICULATOR/Step_0.gml b/eastern flames/objects/ARTICULATOR/Step_0.gml index 7560b25..df75d68 100644 --- a/eastern flames/objects/ARTICULATOR/Step_0.gml +++ b/eastern flames/objects/ARTICULATOR/Step_0.gml @@ -3,8 +3,8 @@ if select && selectedunit == noone { var mousex = floor(mouse_x/global.tilesize.x); var mousey = floor(mouse_y/global.tilesize.y); log(mousex, mousey); - if mousex < array_length(global.map) { - if mousey < array_length(global.map[mousex]) { + if mousex < array_length(global.map) && mousex >= 0 { + if mousey < array_length(global.map[mousex]) && mousey >= 0 { var i; for (i=0; i= 0 { + if mousey < array_length(global.map[mousex]) && mousey >= 0 { var i; for (i=0; i