mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +01:00
Fix a compilation issue with older compilers
This commit is contained in:
committed by
GitHub
parent
1cd7f99d2d
commit
b1a78c8f24
@@ -8060,7 +8060,9 @@ sint32 get_booster_speed(uint8 rideType, sint32 rawSpeed)
|
||||
}
|
||||
else
|
||||
{
|
||||
return (rawSpeed >> std::abs(shiftFactor));
|
||||
// Workaround for an issue with older compilers (GCC 6, Clang 4) which would fail the build
|
||||
sint8 shiftFactorAbs = std::abs(shiftFactor);
|
||||
return (rawSpeed >> shiftFactorAbs);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user