summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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);