File diff r25773:457e167f3c9e → r25774:14ee6e7f4ecc
src/saveload/economy_sl.cpp
Show inline comments
 
@@ -86,16 +86,13 @@ static const SaveLoad _cargopayment_desc
 
	    SLE_VAR(CargoPayment, route_profit,    SLE_INT64),
 
	    SLE_VAR(CargoPayment, visual_profit,   SLE_INT64),
 
	SLE_CONDVAR(CargoPayment, visual_transfer, SLE_INT64, SLV_181, SL_MAX_VERSION),
 
};
 

	
 
struct CAPYChunkHandler : ChunkHandler {
 
	CAPYChunkHandler() : ChunkHandler('CAPY', CH_TABLE)
 
	{
 
		this->fix_pointers = true;
 
	}
 
	CAPYChunkHandler() : ChunkHandler('CAPY', CH_TABLE) {}
 

	
 
	void Save() const override
 
	{
 
		SlTableHeader(_cargopayment_desc);
 

	
 
		for (CargoPayment *cp : CargoPayment::Iterate()) {