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