diff --git a/src/openrct2/ParkFile.cpp b/src/openrct2/ParkFile.cpp index 83a2b55691..e3bfec5a50 100644 --- a/src/openrct2/ParkFile.cpp +++ b/src/openrct2/ParkFile.cpp @@ -72,10 +72,10 @@ static void UpdateFootpathsFromMapping( namespace OpenRCT2 { // Current version that is saved. - constexpr uint32_t PARK_FILE_CURRENT_VERSION = 0x5; + constexpr uint32_t PARK_FILE_CURRENT_VERSION = 0x6; // The minimum version that is forwards compatible with the current version. - constexpr uint32_t PARK_FILE_MIN_VERSION = 0x5; + constexpr uint32_t PARK_FILE_MIN_VERSION = 0x6; namespace ParkFileChunkType { @@ -1224,6 +1224,11 @@ namespace OpenRCT2 cs.ReadWrite(ride.sheltered_length); cs.ReadWrite(ride.var_11C); cs.ReadWrite(ride.num_sheltered_sections); + if (version > 5) + { + cs.ReadWrite(ride.sheltered_eighths); + cs.ReadWrite(ride.holes); + } cs.ReadWrite(ride.current_test_station); cs.ReadWrite(ride.num_block_brakes); cs.ReadWrite(ride.total_air_time); diff --git a/src/openrct2/ride/Ride.h b/src/openrct2/ride/Ride.h index bfc82c26ca..a2770fdccf 100644 --- a/src/openrct2/ride/Ride.h +++ b/src/openrct2/ride/Ride.h @@ -371,11 +371,13 @@ struct Ride uint8_t num_circuits; CoordsXYZ CableLiftLoc; uint16_t cable_lift; - // These fields are used to warn users about issues. + + // These two fields are used to warn users about issues. // Such issue can be hacked rides with incompatible options set. // They don't require export/import. uint8_t current_issues; uint32_t last_issue_time; + RideStation stations[MAX_STATIONS]; uint16_t inversions; uint16_t holes;