summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station.cpp b/src/station.cpp
index 783b631c3..158f9bce5 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -78,7 +78,7 @@ Station::~Station()
Vehicle *v;
FOR_ALL_VEHICLES(v) {
/* Forget about this station if this station is removed */
- if (v->last_station_visited == destination && type == OT_GOTO_STATION) {
+ if (v->last_station_visited == this->index) {
v->last_station_visited = INVALID_STATION;
}
}