(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
authorglx
Mon, 25 Feb 2008 23:12:55 +0000
changeset 9134 618bee700fe7
parent 9133 c03c98d05be4
child 9135 691f0dfe3493
(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
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);
+		}
 	}
 }