diff options
author | glx <glx@openttd.org> | 2008-02-25 23:12:55 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-02-25 23:12:55 +0000 |
commit | 6f55c7e0e8a2d2a1de2a1f923b7a9bc983ff56dd (patch) | |
tree | fcd5f5d92d25ef37fd2c9e7dee37d01c2c5ad6a1 | |
parent | a857d326769e3fccdfc684627f72807b7b5a71f2 (diff) | |
download | openttd-6f55c7e0e8a2d2a1de2a1f923b7a9bc983ff56dd.tar.xz |
(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
-rw-r--r-- | src/vehicle_gui.cpp | 6 |
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); + } } } |