1
0
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:
ζeh Matt
2023-02-21 23:20:48 +02:00
parent 4e45c0176c
commit 063d97f4f2
8 changed files with 63 additions and 44 deletions

View File

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