From 5486e05f65a3fb552a214878fd15f984c7440426 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 15 Feb 2012 21:34:58 +0000 Subject: (svn r23953) -Fix [FS#5062]: When the population of a town changes the town view might even have to change size due to different cargo requirements. --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/town_cmd.cpp') diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 986000b2d..87b55146a 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -380,7 +380,7 @@ void UpdateAllTownVirtCoords() static void ChangePopulation(Town *t, int mod) { t->population += mod; - SetWindowDirty(WC_TOWN_VIEW, t->index); + InvalidateWindowData(WC_TOWN_VIEW, t->index); // Cargo requirements may appear/vanish for small populations t->UpdateVirtCoord(); InvalidateWindowData(WC_TOWN_DIRECTORY, 0, 1); -- cgit v1.2.3-54-g00ecf