# HG changeset patch # User frosch # Date 1329341698 0 # Node ID 92bc2ad022773fbc81fdad4501882a76dc77e729 # Parent 8e2a672cbee959acc31f1f5e404c65db4f61273e (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. diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -380,7 +380,7 @@ 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);