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);