From 42b223a288f9b353ab985916ab7ea2c9859267c8 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 30 Dec 2021 14:08:26 +0000 Subject: [PATCH] Fix CmdBuildRoadStop updating station acceptance in estimate mode --- src/station_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 0e3962b4ca..0e851e142c 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2159,10 +2159,10 @@ CommandCost CmdBuildRoadStop(TileIndex tile, DoCommandFlag flags, uint32 p1, uin ZoningMarkDirtyStationCoverageArea(st); NotifyRoadLayoutChanged(true); UpdateRoadCachedOneWayStatesAroundTile(tile); - } - if (st != nullptr) { - st->AfterStationTileSetChange(true, type ? STATION_TRUCK: STATION_BUS); + if (st != nullptr) { + st->AfterStationTileSetChange(true, type ? STATION_TRUCK: STATION_BUS); + } } return cost; }