1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Fix bug in ride construction window

This commit is contained in:
X123M3-256
2022-07-29 18:03:00 +01:00
parent da472ff033
commit da710557de

View File

@@ -188,7 +188,7 @@ class RideConstructionWindow final : public Window
private:
uint8_t _currentlyShowingBrakeOrBoosterSpeed{};
uint64_t _currentDisabledSpecialTrackPieces{};
track_type_t _currentPossibleRideConfigurations[32]{};
track_type_t _currentPossibleRideConfigurations[64]{};
uint16_t _numCurrentPossibleRideConfigurations{};
uint16_t _numCurrentPossibleSpecialTrackPieces{};
bool _autoOpeningShop{};
@@ -2116,7 +2116,7 @@ public:
&& (trackType != TrackElemType::TowerBase
|| currentRide->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_ALLOW_EXTRA_TOWER_BASES)))
{
_currentDisabledSpecialTrackPieces &= ~(1 << currentPossibleRideConfigurationIndex);
_currentDisabledSpecialTrackPieces &= ~(1ULL << currentPossibleRideConfigurationIndex);
_numCurrentPossibleSpecialTrackPieces++;
}
currentPossibleRideConfigurationIndex++;