# HG changeset patch # User smatz # Date 2009-05-31 09:34:40 # Node ID dab8b4af4fd5ebc06cf6f23f4f1abfa1341f5a45 # Parent 19a5d1ea1b70c41e583a9bbcf3bb045cd655d59c (svn r16476) -Fix (r16475): wrong version of the patch diff --git a/src/station.cpp b/src/station.cpp --- 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; } }