diff --git a/src/windows/new_ride.c b/src/windows/new_ride.c index 0e1acc21eb..032df21a2c 100644 --- a/src/windows/new_ride.c +++ b/src/windows/new_ride.c @@ -320,6 +320,7 @@ static void window_new_ride_populate_list() quadIndex = rideEntryIndex >> 5; bitIndex = rideEntryIndex & 0x1F; + // Skip if vehicle type is not invented yet if (!(RCT2_ADDRESS(0x01357424, uint32)[quadIndex] & (1 << bitIndex))) continue; diff --git a/src/windows/ride.c b/src/windows/ride.c index 93d2cd5585..96b1a2d869 100644 --- a/src/windows/ride.c +++ b/src/windows/ride.c @@ -2330,6 +2330,7 @@ static void window_ride_vehicle_mousedown(int widgetIndex, rct_window *w, rct_wi quadIndex = rideEntryIndex >> 5; bitIndex = rideEntryIndex & 0x1F; + // Skip if vehicle type is not invented yet if (!(RCT2_ADDRESS(0x01357424, uint32)[quadIndex] & (1 << bitIndex))) continue;