Changeset - r15167:2e86f6d3fcca
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2010-05-13 05:34:21
smatz@openttd.org
(svn r19806) -Codechange: silence one warning
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/saveload/depot_sl.cpp
Show inline comments
 
@@ -37,25 +37,25 @@ static void Save_DEPT()
 
	}
 
}
 

	
 
static void Load_DEPT()
 
{
 
	int index;
 

	
 
	while ((index = SlIterateArray()) != -1) {
 
		Depot *depot = new (index) Depot();
 
		SlObject(depot, _depot_desc);
 

	
 
		/* Set the town 'pointer' so we can restore it later. */
 
		if (CheckSavegameVersion(141)) depot->town = (Town *)_town_index;
 
		if (CheckSavegameVersion(141)) depot->town = (Town *)(size_t)_town_index;
 
	}
 
}
 

	
 
static void Ptrs_DEPT()
 
{
 
	Depot *depot;
 

	
 
	FOR_ALL_DEPOTS(depot) {
 
		SlObject(depot, _depot_desc);
 
		if (CheckSavegameVersion(141)) depot->town = Town::Get((size_t)depot->town);
 
	}
 
}
0 comments (0 inline, 0 general)