mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
This commit is contained in:
parent
4a4be744b6
commit
62d9bf8d0f
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user