mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #2395. Fix pressing construct twice
This commit is contained in:
parent
5d489782f7
commit
b9f7f6f4a2
|
@ -1597,8 +1597,11 @@ static void window_ride_init_viewport(rct_window *w)
|
||||||
*/
|
*/
|
||||||
void window_ride_construct(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);
|
window_close_by_class(WC_RIDE_CONSTRUCTION);
|
||||||
ride_construct(w->number);
|
ride_construct(rideIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue