From 7890344bbd235aaa4c34c7a5b1bbe3981a9e1dc2 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 14 May 2008 18:35:15 +0000 Subject: (svn r13091) -Fix: certain compilers give false warning about uninitialized variable --- src/depot_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/depot_gui.cpp') diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 5653c8b7a..4a55985ab 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -889,7 +889,7 @@ struct DepotWindow : Window { this->SetDirty(); if (this->type == VEH_TRAIN) { - GetDepotVehiclePtData gdvp; + GetDepotVehiclePtData gdvp = { NULL, NULL }; if (this->GetVehicleFromDepotWndPt(pt.x, pt.y, &v, &gdvp) == MODE_DRAG_VEHICLE && sel != INVALID_VEHICLE) { -- cgit v1.2.3-54-g00ecf