From 2c056677f5141560d70987d2c991b93700f43ec6 Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 26 Apr 2012 21:03:34 +0000 Subject: [PATCH] (svn r24182) -Fix [FS#5169-ish]: The population of a town was computed incorrectly for overridden houses when loading a game. --- src/saveload/town_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp index 6edd6ddd33..96cf87ada2 100644 --- a/src/saveload/town_sl.cpp +++ b/src/saveload/town_sl.cpp @@ -35,7 +35,7 @@ void RebuildTownCaches() for (TileIndex t = 0; t < MapSize(); t++) { if (!IsTileType(t, MP_HOUSE)) continue; - HouseID house_id = GetCleanHouseType(t); + HouseID house_id = GetHouseType(t); town = Town::GetByTile(t); IncreaseBuildingCount(town, house_id); if (IsHouseCompleted(t)) town->cache.population += HouseSpec::Get(house_id)->population;