summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-01-15 00:03:48 +0000
committerglx <glx@openttd.org>2008-01-15 00:03:48 +0000
commit8c138523731f38af4143fc3a447ed5ee29cf5035 (patch)
tree68bebae8ed01133ddb97ffa1562a072aa5c791c7 /src/openttd.cpp
parent1bcca5aae2fca73b227bda44f21f5509a03b17b9 (diff)
downloadopenttd-8c138523731f38af4143fc3a447ed5ee29cf5035.tar.xz
(svn r11855) -Fix [FS#1335]: recompute town population when removing a 'newhouses' grf, or when loading a game with missing 'newhouses' grfs
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index f53b4a621..2ec5db868 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2018,8 +2018,8 @@ bool AfterLoadGame()
}
}
- /* Count the buildings after updating the map array. */
- AfterLoadCountBuildings();
+ /* Check that house ids are still valid. */
+ CheckHouseIDs();
if (CheckSavegameVersion(43)) {
for (TileIndex t = 0; t < map_size; t++) {