From ffbf8f4706b0d054c2e5046b70a428522d09d509 Mon Sep 17 00:00:00 2001 From: X123M3-256 Date: Fri, 29 Jul 2022 09:54:12 +0100 Subject: [PATCH] Fix bit shifts in ride construction window --- src/openrct2-ui/windows/RideConstruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 2cadf70a2f..e8194f6a4d 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -2111,7 +2111,7 @@ public: continue; _currentPossibleRideConfigurations[currentPossibleRideConfigurationIndex] = trackType; - _currentDisabledSpecialTrackPieces |= (1 << currentPossibleRideConfigurationIndex); + _currentDisabledSpecialTrackPieces |= (1ULL << currentPossibleRideConfigurationIndex); if (_currentTrackPieceDirection < 4 && slope == _previousTrackSlopeEnd && bank == _previousTrackBankEnd && (trackType != TrackElemType::TowerBase || currentRide->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_ALLOW_EXTRA_TOWER_BASES))) @@ -2512,7 +2512,7 @@ private: for (int32_t i = 0; i < 64; i++) { - if (_currentDisabledSpecialTrackPieces & (1 << i)) + if (_currentDisabledSpecialTrackPieces & (1ULL << i)) { Dropdown::SetDisabled(i, true); }