summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pbs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pbs.cpp b/src/pbs.cpp
index 68069c0f9..55569c059 100644
--- a/src/pbs.cpp
+++ b/src/pbs.cpp
@@ -110,7 +110,7 @@ bool TryReserveRailTrack(TileIndex tile, Track t, bool trigger_stations)
case MP_STATION:
if (HasStationRail(tile) && !HasStationReservation(tile)) {
SetRailStationReservation(tile, true);
- if (trigger_stations) TriggerStationRandomisation(NULL, tile, SRT_PATH_RESERVATION);
+ if (trigger_stations && IsRailStation(tile)) TriggerStationRandomisation(NULL, tile, SRT_PATH_RESERVATION);
MarkTileDirtyByTile(tile); // some GRFs need redraw after reserving track
return true;
}