diff --git a/src/station.cpp b/src/station.cpp index 783b631c3c..158f9bce58 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; } }