(svn r6516) -Fix r6513: killed warnings about two variables being used uninitialized

This is not even correct since it's set in if (a) and later used in another if (a), but GCC didn't detect that
This commit is contained in:
bjarni
2006-09-27 00:25:27 +00:00
parent 7ac9005d5e
commit 1d432aa23c

View File

@@ -301,7 +301,7 @@ enum {
static int GetVehicleFromDepotWndPt(const Window *w, int x, int y, Vehicle **veh, GetDepotVehiclePtData *d) static int GetVehicleFromDepotWndPt(const Window *w, int x, int y, Vehicle **veh, GetDepotVehiclePtData *d)
{ {
Vehicle **vl = WP(w, depot_d).vehicle_list; Vehicle **vl = WP(w, depot_d).vehicle_list;
uint xt, row, xm, ym; uint xt, row, xm = 0, ym = 0;
int pos, skip = 0; int pos, skip = 0;
if (WP(w, depot_d).type == VEH_Train) { if (WP(w, depot_d).type == VEH_Train) {