From dbf6e344a419cf453ce8a292a588385b5299c996 Mon Sep 17 00:00:00 2001 From: bjarni Date: Sun, 4 May 2008 10:05:35 +0000 Subject: (svn r12940) -Fix [FS#1974](r12913): [autoreplace] a vehicle backup should include the cargo packets in the vehicle as well --- src/cargopacket.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cargopacket.h') diff --git a/src/cargopacket.h b/src/cargopacket.h index 8e3d77a65..3718bd1c8 100644 --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -11,6 +11,8 @@ #include "station_type.h" #include +struct BackuppedVehicle; + typedef uint32 CargoPacketID; struct CargoPacket; @@ -56,6 +58,8 @@ struct CargoPacket : PoolItem { * @return true if and only if days_in_transit and source_xy are equal */ bool SameSource(const CargoPacket *cp) const; + + void RestoreBackup() const; }; /** @@ -99,6 +103,7 @@ private: uint days_in_transit; ///< Cache for the number of days in transit public: + friend struct BackuppedVehicle; friend void SaveLoad_STNS(Station *st); /** Create the cargo list */ -- cgit v1.2.3-54-g00ecf