summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-24 23:18:21 +0000
committersmatz <smatz@openttd.org>2008-05-24 23:18:21 +0000
commit7672a059c96ca304b7244cd7fbfe1a05eb03a7c9 (patch)
tree63d41f719f035ece1970afb6f41cb6d8844074d6
parent7fbfe54c7409e2b3076339caf74b236d852abe65 (diff)
downloadopenttd-7672a059c96ca304b7244cd7fbfe1a05eb03a7c9.tar.xz
(svn r13239) -Fix: certain compilers give false warning about uninitialized variable
-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;