We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5af389 + 3d976f5 commit 361cc76Copy full SHA for 361cc76
code/menuui/techmenu.cpp
@@ -43,7 +43,7 @@
43
44
#define NUM_BUTTONS 16
45
#define NUM_TABS 3
46
-#define LIST_BUTTONS_MAX 42
+#define LIST_BUTTONS_MAX 50
47
48
#define SHIPS_DATA_MODE (1<<0)
49
#define WEAPONS_DATA_MODE (1<<1)
@@ -430,7 +430,7 @@ void tech_common_render()
430
y = 0;
431
z = List_offset;
432
while (y + font_height <= Tech_list_coords[gr_screen.res][SHIP_H_COORD]) {
433
- if (z >= static_cast<int>(Current_list->size())) {
+ if ((z - List_offset) >= LIST_BUTTONS_MAX || z >= static_cast<int>(Current_list->size())) {
434
break;
435
}
436
0 commit comments