diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 35acc3588b..4bca23d27e 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -12,6 +12,7 @@ - Fix: [#27084] [Plugin] `PermissionType` for `drag_path_area` is missing. - Fix: [#27087] The ‘Update available’ widget is offset incorrectly. - Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. +- Fix: [#27109] Some rides in RCT1 saves have a wrong number of cars per train. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index aa3a2c1f21..5d8126e1f2 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -935,10 +935,11 @@ namespace OpenRCT2::RCT1 } dst->numTrains = src->numTrains; - dst->numCarsPerTrain = src->numCarsPerTrain + rideEntry->zero_cars; + const auto additionalZeroCars = getAdditionalZeroCars(src->vehicleType); + dst->numCarsPerTrain = src->numCarsPerTrain + additionalZeroCars; dst->proposedNumTrains = src->numTrains; dst->maxTrains = src->maxTrains; - dst->proposedNumCarsPerTrain = src->numCarsPerTrain + rideEntry->zero_cars; + dst->proposedNumCarsPerTrain = src->numCarsPerTrain + additionalZeroCars; auto split = splitCombinedHelicesAndSpecialElements(src->specialTrackElements); dst->numHelices = split.first; dst->specialTrackElements = split.second;