summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan G Rennison <j.g.rennison@gmail.com>2021-12-30 14:06:40 +0000
committerMichael Lutz <michi@icosahedron.de>2021-12-30 20:39:10 +0100
commit4844268d1cdae0d0f50ac7d9a9d0bab57e8215da (patch)
tree812fb7248201ee8f087c312576f6ed7e44ba8919
parent21f85cac87c7efa7d470653c2480be6e496dd73e (diff)
downloadopenttd-4844268d1cdae0d0f50ac7d9a9d0bab57e8215da.tar.xz
Fix #9774: CmdBuildRoadStop updated station acceptance in estimate mode
-rw-r--r--src/station_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index b0603485d..5a91fa474 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1918,10 +1918,10 @@ CommandCost CmdBuildRoadStop(DoCommandFlag flags, TileIndex tile, uint8 width, u
MarkTileDirtyByTile(cur_tile);
}
- }
- if (st != nullptr) {
- st->AfterStationTileSetChange(true, is_truck_stop ? STATION_TRUCK: STATION_BUS);
+ if (st != nullptr) {
+ st->AfterStationTileSetChange(true, is_truck_stop ? STATION_TRUCK: STATION_BUS);
+ }
}
return cost;
}