mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Replace more occurences of vehicles per ride entry
This commit is contained in:
@@ -59,7 +59,7 @@ void RideObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
|
||||
_legacyType.rear_vehicle = stream->ReadValue<uint8>();
|
||||
_legacyType.third_vehicle = stream->ReadValue<uint8>();
|
||||
_legacyType.pad_019 = stream->ReadValue<uint8>();
|
||||
for (sint32 i = 0; i < 4; i++)
|
||||
for (sint32 i = 0; i < MAX_VEHICLES_PER_RIDE_ENTRY; i++)
|
||||
{
|
||||
rct_ride_entry_vehicle * entry = &_legacyType.vehicles[i];
|
||||
ReadLegacyVehicle(context, stream, entry);
|
||||
@@ -106,7 +106,7 @@ void RideObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
|
||||
}
|
||||
|
||||
// Read peep loading positions
|
||||
for (sint32 i = 0; i < 4; i++)
|
||||
for (sint32 i = 0; i < MAX_VEHICLES_PER_RIDE_ENTRY; i++)
|
||||
{
|
||||
uint16 numPeepLoadingPositions = stream->ReadValue<uint8>();
|
||||
if (numPeepLoadingPositions == 255)
|
||||
|
||||
Reference in New Issue
Block a user