From 6b99440c284293d9b678ee87ce93bd59c7bfe5fc Mon Sep 17 00:00:00 2001 From: Nelsonh <81228864+OH296@users.noreply.github.com> Date: Tue, 10 Dec 2024 07:54:08 +0000 Subject: [PATCH] fix: Add extra check to stop array errror in ui_manage ship area (#188) as on tin hopefully fixes: https://discord.com/channels/714022226810372107/1315171741932322816 --- scripts/scr_ui_manage/scr_ui_manage.gml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scr_ui_manage/scr_ui_manage.gml b/scripts/scr_ui_manage/scr_ui_manage.gml index b429ffae7..c5e3efa0f 100644 --- a/scripts/scr_ui_manage/scr_ui_manage.gml +++ b/scripts/scr_ui_manage/scr_ui_manage.gml @@ -1210,7 +1210,7 @@ function scr_ui_manage() { var main_rect; var repetitions = min(ship_max, ship_see); - for (var sel = top; sel < repetitions; sel++) { + for (var sel = top; sel < repetitions && sel