summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-16 16:04:35 +0000
committeryexo <yexo@openttd.org>2010-03-16 16:04:35 +0000
commit05d29d8a3d46b202cef21a192f8ae974ff23f99e (patch)
tree7cddca6f8a85551edd80d669993d827343eeb3ac /src/saveload
parent604da97364d9b6ceb77624bb208b3c432494caf4 (diff)
downloadopenttd-05d29d8a3d46b202cef21a192f8ae974ff23f99e.tar.xz
(svn r19435) -Fix: when loading a savegame created with a house newgrf without that newgrf available all houses became tall office blocks
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/town_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp
index 47a7fb6c0..d10a0c60e 100644
--- a/src/saveload/town_sl.cpp
+++ b/src/saveload/town_sl.cpp
@@ -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. */