mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 11:45:13 +01:00
Use fixed size storage for Rides, cleanup interface a bit
This commit is contained in:
@@ -122,7 +122,7 @@ GameActions::Result RideCreateAction::Execute() const
|
||||
int32_t rideEntryIndex = RideGetEntryIndex(_rideType, _subType);
|
||||
auto rideIndex = GetNextFreeRideId();
|
||||
|
||||
auto ride = GetOrAllocateRide(rideIndex);
|
||||
auto ride = RideAllocateAtIndex(rideIndex);
|
||||
const auto* rideEntry = GetRideEntryByIndex(rideEntryIndex);
|
||||
if (rideEntry == nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user