Changeset - r8618:05f957b80863
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-02-20 19:34:53
smatz@openttd.org
(svn r12201) -Fix (r12060): compilation warnings - uninitialized variable when compiling with assert disabled
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -1619,7 +1619,12 @@ HouseZonesBits GetTownRadiusGroup(const 
 
 */
 
static inline void ClearMakeHouseTile(TileIndex tile, TownID tid, byte counter, byte stage, HouseID type, byte random_bits)
 
{
 
	CommandCost cc = DoCommand(tile, 0, 0, DC_EXEC | DC_AUTO | DC_NO_WATER, CMD_LANDSCAPE_CLEAR);
 
	#if !defined(NDEBUG) || defined(WITH_ASSERT)
 
		CommandCost cc =
 
	#endif /* !defined(NDEBUG) || defined(WITH_ASSERT) */
 

	
 
	DoCommand(tile, 0, 0, DC_EXEC | DC_AUTO | DC_NO_WATER, CMD_LANDSCAPE_CLEAR);
 

	
 
	assert(CmdSucceeded(cc));
 

	
 
	MakeHouseTile(tile, tid, counter, stage, type, random_bits);
0 comments (0 inline, 0 general)