From 8c138523731f38af4143fc3a447ed5ee29cf5035 Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 15 Jan 2008 00:03:48 +0000 Subject: (svn r11855) -Fix [FS#1335]: recompute town population when removing a 'newhouses' grf, or when loading a game with missing 'newhouses' grfs --- src/town_cmd.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/town_cmd.cpp') diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index e6ee6c208..3bb6b7d9c 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2411,9 +2411,8 @@ static const SaveLoad _town_desc[] = { SLE_CONDVAR(Town, xy, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), SLE_CONDVAR(Town, xy, SLE_UINT32, 6, SL_MAX_VERSION), - SLE_CONDVAR(Town, population, SLE_FILE_U16 | SLE_VAR_U32, 0, 2), - SLE_CONDVAR(Town, population, SLE_UINT32, 3, SL_MAX_VERSION), - + SLE_CONDNULL(2, 0, 2), + SLE_CONDNULL(4, 3, 84), SLE_VAR(Town, num_houses, SLE_UINT16), SLE_CONDVAR(Town, townnamegrfid, SLE_UINT32, 66, SL_MAX_VERSION), -- cgit v1.2.3-54-g00ecf