From d0d6804bf8f31c201b0fe75471fe0b1b1cd34084 Mon Sep 17 00:00:00 2001 From: bjarni Date: Mon, 24 Oct 2005 20:12:39 +0000 Subject: [PATCH] (svn r3082) made ChangeVehicleViewWindow() more readable (added in last commit) --- vehicle_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle_gui.c b/vehicle_gui.c index 35aef45814..bff8ec1b15 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -1099,7 +1099,7 @@ void ChangeVehicleViewWindow(const Vehicle *from_v, const Vehicle *to_v) if (w != NULL) { w->window_number = to_v->index; - WP(w, vp_d).follow_vehicle = (VehicleID)(w->window_number & 0xFFFF); + WP(w, vp_d).follow_vehicle = to_v->index; // tell the viewport to follow the new vehicle SetWindowDirty(w); w = FindWindowById(WC_VEHICLE_ORDERS, from_v->index);