From 79d5a41b853395d7d4c9c1f7f8c54cdebf8ae98c Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 31 May 2009 09:34:40 +0000 Subject: (svn r16476) -Fix (r16475): wrong version of the patch --- src/station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3-54-g00ecf