Fix #4958: Assertion when opening ride window to R&D

This commit is contained in:
Ted John 2017-01-01 20:07:28 +00:00
parent 30c738e91c
commit e0babbf7c2
1 changed files with 4 additions and 1 deletions

View File

@ -454,7 +454,10 @@ rct_window *window_new_ride_open()
w->width = 1;
window_new_ride_refresh_widget_sizing(w);
window_new_ride_scroll_to_focused_ride(w);
if (_windowNewRideCurrentTab != WINDOW_NEW_RIDE_PAGE_RESEARCH) {
window_new_ride_scroll_to_focused_ride(w);
}
return w;
}