diff options
author | smatz <smatz@openttd.org> | 2009-05-31 09:34:40 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-31 09:34:40 +0000 |
commit | 79d5a41b853395d7d4c9c1f7f8c54cdebf8ae98c (patch) | |
tree | 727b5cca9b6f86cc5f0f4c0db2e9dc8bb66b225f /src | |
parent | ab5a51d462e99d40dd2584b5fea60c0f1b9dffb1 (diff) | |
download | openttd-79d5a41b853395d7d4c9c1f7f8c54cdebf8ae98c.tar.xz |
(svn r16476) -Fix (r16475): wrong version of the patch
Diffstat (limited to 'src')
-rw-r--r-- | src/station.cpp | 2 |
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; } } |