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
commit6f55c7e0e8a2d2a1de2a1f923b7a9bc983ff56dd (patch)
treefcd5f5d92d25ef37fd2c9e7dee37d01c2c5ad6a1 /src
parenta857d326769e3fccdfc684627f72807b7b5a71f2 (diff)
downloadopenttd-6f55c7e0e8a2d2a1de2a1f923b7a9bc983ff56dd.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);
+ }
}
}