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
commit60ae7993210f67abde29b11d03623fbcbfdc732e (patch)
tree63d41f719f035ece1970afb6f41cb6d8844074d6
parentca30288c9d0057c62712973ae2c126195c8c9df5 (diff)
downloadopenttd-60ae7993210f67abde29b11d03623fbcbfdc732e.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;