forked from rosebudai/OpenRCT2-Web
Futureproof the options window invalidation for this and future additions
This commit is contained in:
1 parent
5a5cf21cd3
commit
38e8a028c0
1 file changed
+3
-2
@@ -96,7 +96,8 @@ enum WINDOW_OPTIONS_WIDGET_IDX {
|
||||
WIDX_SAVE_PLUGIN_DATA_CHECKBOX,
|
||||
WIDX_AUTOSAVE,
|
||||
WIDX_AUTOSAVE_DROPDOWN,
|
||||
WIDX_ALLOW_SUBTYPE_SWITCHING
|
||||
WIDX_ALLOW_SUBTYPE_SWITCHING,
|
||||
WINDOW_OPTIONS_WIDGETS_SIZE // Marks the end of the widget list, leave as last item
|
||||
};
|
||||
|
||||
#define WW 310
|
||||
@@ -643,7 +644,7 @@ static void window_options_invalidate()
|
||||
window_get_register(w);
|
||||
|
||||
window_options_set_pressed_tab(w);
|
||||
for (i = WIDX_RESOLUTION; i <= WIDX_AUTOSAVE_DROPDOWN; i++) {
|
||||
for (i = WIDX_RESOLUTION; i < WINDOW_OPTIONS_WIDGETS_SIZE; i++) {
|
||||
window_options_widgets[i].type = WWT_EMPTY;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user