# HG changeset patch # User frosch # Date 2008-11-22 19:49:17 # Node ID 5287d890af0909cf203b15005c7f179257899280 # Parent 5ec4e1205d3ba738910b3d02d10c0143698609ee (svn r14608) -Fix (r9315): Return the current year as construction year for unfinished houses. diff --git a/src/town_map.h b/src/town_map.h --- a/src/town_map.h +++ b/src/town_map.h @@ -7,6 +7,7 @@ #include "town.h" #include "date_type.h" +#include "date_func.h" #include "tile_map.h" /** @@ -285,7 +286,7 @@ static inline void SetHouseConstructionY static inline Year GetHouseConstructionYear(TileIndex t) { assert(IsTileType(t, MP_HOUSE)); - return IsHouseCompleted(t) ? _m[t].m5 + GetHouseSpecs(GetHouseType(t))->min_year : 0; + return IsHouseCompleted(t) ? _m[t].m5 + GetHouseSpecs(GetHouseType(t))->min_year : _cur_year; } /**