Skip to content

Commit

Permalink
fix: Add extra check to stop array errror in ui_manage ship area (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
OH296 authored Dec 10, 2024
1 parent 5e8248f commit 6b99440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/scr_ui_manage/scr_ui_manage.gml
Original file line number Diff line number Diff line change
Expand Up @@ -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<array_length(sh_name); sel++) {

if (sh_name[sel] != "") {
temp1 = string(sh_name[sel]) + " (" + string(sh_class[sel]) + ")";
Expand Down

0 comments on commit 6b99440

Please sign in to comment.