summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/depot_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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) {