Fixed potential array out of bounds condition when break would never trigger.

This commit is contained in:
Ger Schinkel 2024-03-29 12:44:46 +01:00
parent db897d0d42
commit 076390e911

View File

@ -2356,10 +2356,10 @@ static void update_display_dynamic(int ticker, driver_window *drv)
y2s = sm_uptd[ticker % 8];
y2a = 8;
for (i = 0; i < 6; i++) {
max_box = sm_no_boxes[i];
if (ticker % (2 << i))
break;
}
max_box = sm_no_boxes[i];
if (y2a) {
for (y1=0; y1<16; y1++) {