diff options
author | bjarni <bjarni@openttd.org> | 2006-09-27 00:25:27 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-09-27 00:25:27 +0000 |
commit | 1d432aa23cccb5ca7041f719437200c02ac2fe0f (patch) | |
tree | f83ca0155a2392ee39a82fa01c782f002e2653d3 | |
parent | 7ac9005d5e13f066254a2bb091dc6519f9289f05 (diff) | |
download | openttd-1d432aa23cccb5ca7041f719437200c02ac2fe0f.tar.xz |
(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
-rw-r--r-- | depot_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/depot_gui.c b/depot_gui.c index 80c93ab09..927ed8e91 100644 --- a/depot_gui.c +++ b/depot_gui.c @@ -301,7 +301,7 @@ enum { static int GetVehicleFromDepotWndPt(const Window *w, int x, int y, Vehicle **veh, GetDepotVehiclePtData *d) { Vehicle **vl = WP(w, depot_d).vehicle_list; - uint xt, row, xm, ym; + uint xt, row, xm = 0, ym = 0; int pos, skip = 0; if (WP(w, depot_d).type == VEH_Train) { |