diff -r 34bc7cbbb79a -r 38b6cc9fd473 src/cargopacket.h --- a/src/cargopacket.h Sun May 04 09:39:16 2008 +0000 +++ b/src/cargopacket.h Sun May 04 10:05:35 2008 +0000 @@ -11,6 +11,8 @@ #include "station_type.h" #include +struct BackuppedVehicle; + typedef uint32 CargoPacketID; struct CargoPacket; @@ -56,6 +58,8 @@ * @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 @@ 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 */