Fix #2395. Fix pressing construct twice

This commit is contained in:
duncanspumpkin 2015-11-29 11:03:43 +00:00
parent 5d489782f7
commit b9f7f6f4a2
1 changed files with 4 additions and 1 deletions

View File

@ -1597,8 +1597,11 @@ static void window_ride_init_viewport(rct_window *w)
*/
void window_ride_construct(rct_window *w)
{
// Window may be closed by close by class so
// make backup before calling.
uint8 rideIndex = w->number;
window_close_by_class(WC_RIDE_CONSTRUCTION);
ride_construct(w->number);
ride_construct(rideIndex);
}
/**