From 6f55c7e0e8a2d2a1de2a1f923b7a9bc983ff56dd Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 25 Feb 2008 23:12:55 +0000 Subject: (svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window --- src/vehicle_gui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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); + } } } -- cgit v1.2.3-70-g09d2