summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index a58bf0172..314af0090 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -2617,6 +2617,8 @@ bad:;
TileIndex Train::GetOrderStationLocation(StationID station)
{
+ if (station == this->last_station_visited) this->last_station_visited = INVALID_STATION;
+
return GetStation(station)->xy;
}