1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Make all access to RTD table use the bounds checking function

This commit is contained in:
Gymnasiast
2021-02-26 10:01:00 +01:00
parent 62f8796677
commit 44d0e77afb
31 changed files with 93 additions and 93 deletions

View File

@@ -1099,7 +1099,7 @@ static int32_t cc_load_object(InteractiveConsole& console, const arguments_t& ar
rideType = rideEntry->ride_type[j];
if (rideType != RIDE_TYPE_NULL)
{
ResearchCategory category = RideTypeDescriptors[rideType].GetResearchCategory();
ResearchCategory category = GetRideTypeDescriptor(rideType).GetResearchCategory();
research_insert_ride_entry(rideType, groupIndex, category, true);
}
}