Check for page correctly

This commit is contained in:
Hielke Morsink 2018-05-27 18:07:05 +02:00
parent 15ae358946
commit 617372fd38
1 changed files with 1 additions and 1 deletions

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;
}