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:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user