forked from rosebudai/OpenRCT2-Web
Make all access to RTD table use the bounds checking function
This commit is contained in:
31 files changed
+93
-93
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user