diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -879,7 +879,7 @@ struct DepotWindow : Window { { switch (widget) { case DEPOT_WIDGET_MATRIX: { - Vehicle *v; + Vehicle *v = NULL; VehicleID sel = this->sel; this->sel = INVALID_VEHICLE;