1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +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

@@ -405,7 +405,7 @@ void RideObject::SetRepositoryItem(ObjectRepositoryItem* item) const
{
// Find the first non-null ride type, to be used when checking the ride group and determining the category.
uint8_t firstRideType = ride_entry_get_first_non_null_ride_type(&_legacyType);
uint8_t category = RideTypeDescriptors[firstRideType].Category;
uint8_t category = GetRideTypeDescriptor(firstRideType).Category;
for (int32_t i = 0; i < RCT2_MAX_RIDE_TYPES_PER_RIDE_ENTRY; i++)
{