Return const RideObjectEntry*, refactor uses and fix related access

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

No files matched your search

@@ -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++)
{