diff --git a/src/windows/ride.c b/src/windows/ride.c index 7738db9771..e9f65b67ec 100644 --- a/src/windows/ride.c +++ b/src/windows/ride.c @@ -2798,9 +2798,9 @@ static void window_ride_mode_tweak_increase(rct_window *w) } uint8 increment = ride->mode == RIDE_MODE_BUMPERCAR ? 10 : 1; - uint8 newValue = ride->operation_option + increment; - if (newValue <= maxValue) { - window_ride_mode_tweak_set(w, newValue); + + if (maxValue - increment >= ride->operation_option) { + window_ride_mode_tweak_set(w, ride->operation_option + increment); } }