From 19af139631b5bc98dba6de4c4f0b7aeb6b3ac6aa Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 29 Jun 2022 00:48:33 +0100 Subject: [PATCH] Fix #9937: Station industries_near incorrect after removing part moved sign RecomputeCatchment was being called before moving the sign tile instead of afterwards --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 2c038c548c..85c18b6faa 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -752,7 +752,6 @@ void Station::AfterStationTileSetChange(bool adding, StationType type) InvalidateWindowData(WC_STATION_LIST, this->owner, 0); } else { MarkCatchmentTilesDirty(); - this->RecomputeCatchment(); } switch (type) { @@ -776,6 +775,7 @@ void Station::AfterStationTileSetChange(bool adding, StationType type) InvalidateWindowData(WC_SELECT_STATION, 0, 0); } else { DeleteStationIfEmpty(this); + this->RecomputeCatchment(); } }