1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #15602: Cannot relocate shops properly

This commit is contained in:
Michael Steenbeek
2021-11-04 00:10:12 +01:00
committed by GitHub
parent 0389e926a0
commit e878f43148

View File

@@ -1936,7 +1936,8 @@ static void window_ride_construction_mouseup_demolish(rct_window* w)
// When flat rides are deleted, the window should be reset so the ride can be placed again.
const auto rideId = w->rideId;
auto ride = get_ride(rideId);
if (ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE))
const auto& rtd = ride->GetRideTypeDescriptor();
if (rtd.HasFlag(RIDE_TYPE_FLAG_FLAT_RIDE) && !rtd.HasFlag(RIDE_TYPE_FLAG_IS_SHOP))
{
ride_initialise_construction_window(ride);
}