summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 b755bbfb8..007c192ca 100644
--- 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;