summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-02-25 23:12:55 +0000
committerglx <glx@openttd.org>2008-02-25 23:12:55 +0000
commit62d9bf8d0ff18a81d7590340197be89d4ebf2eae (patch)
treefcd5f5d92d25ef37fd2c9e7dee37d01c2c5ad6a1 /src
parent4a4be744b67e0435e6c57583cf7bcd3dd79bd321 (diff)
downloadopenttd-62d9bf8d0ff18a81d7590340197be89d4ebf2eae.tar.xz
(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 28e9b5828..809f62d4f 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -723,6 +723,12 @@ void ChangeVehicleViewWindow(const Vehicle *from_v, const Vehicle *to_v)
w->window_number = to_v->index;
SetWindowDirty(w);
}
+
+ w = FindWindowById(WC_VEHICLE_TIMETABLE, from_v->index);
+ if (w != NULL) {
+ w->window_number = to_v->index;
+ SetWindowDirty(w);
+ }
}
}