(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window

pull/155/head
glx 17 years ago
parent a857d32676
commit 6f55c7e0e8

@ -723,6 +723,12 @@ void ChangeVehicleViewWindow(const Vehicle *from_v, const Vehicle *to_v)
w->window_number = to_v->index; w->window_number = to_v->index;
SetWindowDirty(w); SetWindowDirty(w);
} }
w = FindWindowById(WC_VEHICLE_TIMETABLE, from_v->index);
if (w != NULL) {
w->window_number = to_v->index;
SetWindowDirty(w);
}
} }
} }

Loading…
Cancel
Save