File diff r25773:457e167f3c9e → r25774:14ee6e7f4ecc
src/saveload/depot_sl.cpp
Show inline comments
 
@@ -27,16 +27,13 @@ static const SaveLoad _depot_desc[] = {
 
	 SLE_CONDVAR(Depot, town_cn,    SLE_UINT16,               SLV_141, SL_MAX_VERSION),
 
	SLE_CONDSSTR(Depot, name,       SLE_STR,                  SLV_141, SL_MAX_VERSION),
 
	 SLE_CONDVAR(Depot, build_date, SLE_INT32,                SLV_142, SL_MAX_VERSION),
 
};
 

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

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

	
 
		for (Depot *depot : Depot::Iterate()) {