summaryrefslogtreecommitdiff
path: root/depot_gui.c
diff options
context:
space:
mode:
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) {