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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user