1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Merge pull request #14163 from Gymnasiast/refactor/get-rtd

Use GetRideTypeDescriptor() in more places
This commit is contained in:
Michael Steenbeek
2021-02-26 10:46:38 +01:00
committed by GitHub
59 changed files with 346 additions and 357 deletions

View File

@@ -1100,7 +1100,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);
}
}