summaryrefslogtreecommitdiff
path: root/depot_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-27 00:25:27 +0000
committerbjarni <bjarni@openttd.org>2006-09-27 00:25:27 +0000
commitd88e1a218e91ec8b7ddee9f2852f1126ad54a379 (patch)
treef83ca0155a2392ee39a82fa01c782f002e2653d3 /depot_gui.c
parent1d554da2fc24ab9387d87030b9a3069fcdbfe256 (diff)
downloadopenttd-d88e1a218e91ec8b7ddee9f2852f1126ad54a379.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
Diffstat (limited to 'depot_gui.c')
-rw-r--r--depot_gui.c2
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) {