mirror of https://github.com/OpenTTD/OpenTTD
(svn r12201) -Fix (r12060): compilation warnings - uninitialized variable when compiling with assert disabled
parent
767e1cc37e
commit
a47b4631ea
|
@ -1619,7 +1619,12 @@ HouseZonesBits GetTownRadiusGroup(const Town* t, TileIndex tile)
|
||||||
*/
|
*/
|
||||||
static inline void ClearMakeHouseTile(TileIndex tile, TownID tid, byte counter, byte stage, HouseID type, byte random_bits)
|
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));
|
assert(CmdSucceeded(cc));
|
||||||
|
|
||||||
MakeHouseTile(tile, tid, counter, stage, type, random_bits);
|
MakeHouseTile(tile, tid, counter, stage, type, random_bits);
|
||||||
|
|
Loading…
Reference in New Issue