(svn r16476) -Fix (r16475): wrong version of the patch

This commit is contained in:
smatz 2009-05-31 09:34:40 +00:00
parent ab5a51d462
commit 79d5a41b85
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}