diff --git a/src/openrct2/interface/InteractiveConsole.cpp b/src/openrct2/interface/InteractiveConsole.cpp index 29ec47519e..a23c4eee9d 100644 --- a/src/openrct2/interface/InteractiveConsole.cpp +++ b/src/openrct2/interface/InteractiveConsole.cpp @@ -1094,8 +1094,11 @@ static int32_t cc_load_object(InteractiveConsole& console, const arguments_t& ar for (int32_t j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { rideType = rideEntry->ride_type[j]; - uint8_t category = RideTypeDescriptors[rideType].Category; - research_insert_ride_entry(rideType, groupIndex, category, true); + if (rideType != RIDE_TYPE_NULL) + { + uint8_t category = RideTypeDescriptors[rideType].Category; + research_insert_ride_entry(rideType, groupIndex, category, true); + } } gSilentResearch = true;