Check for page correctly

This commit is contained in:
Hielke Morsink committed 2018-05-27 18:07:05 +02:00
1 parent 15ae358946
commit 617372fd38
1 file changed
+1 -1
+1 -1
View File
@@ -991,7 +991,7 @@ static void window_tile_inspector_mouseup(rct_window *w, rct_widgetindex widgetI
}
// Only element-specific widgets from now on
if (w->selected_list_item == TILE_INSPECTOR_PAGE_DEFAULT || w->selected_list_item == -1) {
if (w->page == TILE_INSPECTOR_PAGE_DEFAULT || w->selected_list_item == -1) {
return;
}