Fix #6341: “Unlock vehicle limits” doesn’t work for setting fewer cpt

This commit is contained in:
Gymnasiast 2022-12-11 23:00:51 +01:00
parent 5de62b774a
commit 174d638d1d
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
2 changed files with 2 additions and 2 deletions

View File

@ -25,6 +25,7 @@
- Change: [#18381] Convert custom invisible paths to the built-in ones.
- Change: [OpenSFX#11, OpenMusic#19] First implementation of official replacement asset packs for sound effects & music.
- Fix: [#1519] “See-through rides” doesn't affect all rides (original bug).
- Fix: [#6341] “Unlock vehicle limits” does not allow setting fewer vehicles than the vehicle type requires.
- Fix: [#14312] Research ride type message incorrect.
- Fix: [#14425] Ride ratings do not skip unallocated ride ids.
- Fix: [#15969] Guests heading for ride use vanilla behaviour

View File

@ -2676,8 +2676,7 @@ static void WindowRideVehicleMousedown(rct_window* w, WidgetIndex widgetIndex, r
ride->SetNumCarsPerVehicle(ride->num_cars_per_train + 1);
break;
case WIDX_VEHICLE_CARS_PER_TRAIN_DECREASE:
rct_ride_entry* rideEntry = ride->GetRideEntry();
if (ride->num_cars_per_train > rideEntry->zero_cars + 1)
if (ride->num_cars_per_train > 1)
ride->SetNumCarsPerVehicle(ride->num_cars_per_train - 1);
break;
}