(svn r19435) -Fix: when loading a savegame created with a house newgrf without that newgrf available all houses became tall office blocks

This commit is contained in:
yexo
2010-03-16 16:04:35 +00:00
parent a7b93cdeb5
commit fa9d25eb2c
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ void UpdateHousesAndTowns()
if (!IsTileType(t, MP_HOUSE)) continue;
house_id = GetHouseType(t);
house_id = GetCleanHouseType(t);
if (!HouseSpec::Get(house_id)->enabled && house_id >= NEW_HOUSE_OFFSET) {
/* The specs for this type of house are not available any more, so
* replace it with the substitute original house type. */