1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Return const RideObjectEntry*, refactor uses and fix related access

This commit is contained in:
ζeh Matt
2023-02-05 17:36:37 +02:00
parent 76b94a150c
commit a2a06d6dde
24 changed files with 153 additions and 161 deletions

View File

@@ -1233,9 +1233,7 @@ static int32_t ConsoleCommandLoadObject(InteractiveConsole& console, const argum
if (objectType == ObjectType::Ride)
{
// Automatically research the ride so it's supported by the game.
RideObjectEntry* rideEntry;
rideEntry = GetRideEntryByIndex(groupIndex);
const auto* rideEntry = GetRideEntryByIndex(groupIndex);
for (int32_t j = 0; j < RCT2::ObjectLimits::MaxRideTypesPerRideEntry; j++)
{