# HG changeset patch # User glx # Date 1203981175 0 # Node ID fc86c9704dda991e54f3bea49e855df9323711b6 # Parent c282b7ea972e4145a890902c3cf3a8df41cb6303 (svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window diff -r c282b7ea972e -r fc86c9704dda src/vehicle_gui.cpp --- a/src/vehicle_gui.cpp Mon Feb 25 16:30:12 2008 +0000 +++ b/src/vehicle_gui.cpp Mon Feb 25 23:12:55 2008 +0000 @@ -723,6 +723,12 @@ 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); + } } }