(svn r11855) -Fix [FS#1335]: recompute town population when removing a 'newhouses' grf, or when loading a game with missing 'newhouses' grfs

This commit is contained in:
glx
2008-01-15 00:03:48 +00:00
parent 1bcca5aae2
commit 8c13852373
4 changed files with 11 additions and 23 deletions

View File

@@ -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++) {