1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Add assert to test if the ride slot is actually free

This commit is contained in:
ζeh Matt
2023-02-21 23:57:34 +02:00
parent 6a5bfa5cad
commit ef8d08c5e5

View File

@@ -174,6 +174,8 @@ Ride* RideAllocateAtIndex(RideId index)
_maxRideSize = std::max<size_t>(idx + 1, _maxRideSize);
auto result = &_rides[idx];
assert(result->id == RideId::GetNull());
result->id = index;
return result;
}