From bea03ab5e72e83aa851f30e22c5c53f4a5c0d85d Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 13 May 2008 22:02:14 +0000 Subject: (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 f490e58de..5653c8b7a 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); -- cgit v1.2.3-70-g09d2