From a152d420a53995f97eb98724ee1a58f63ab0d7ff Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 13 May 2008 22:02:14 +0000 Subject: [PATCH] (svn r13079) -Fix: certain compilers give false warning about uninitialized variable --- src/depot_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index f490e58de3..5653c8b7a2 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -503,7 +503,7 @@ struct DepotWindow : Window { void DepotClick(int x, int y) { - GetDepotVehiclePtData gdvp; + GetDepotVehiclePtData gdvp = { NULL, NULL }; Vehicle *v = NULL; DepotGUIAction mode = this->GetVehicleFromDepotWndPt(x, y, &v, &gdvp);