summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-13 22:02:14 +0000
committersmatz <smatz@openttd.org>2008-05-13 22:02:14 +0000
commitbea03ab5e72e83aa851f30e22c5c53f4a5c0d85d (patch)
treef078c7f80286ebaf914f384d331b885d7a283d00 /src/depot_gui.cpp
parent0d2e74fb71f7d5bfd827557402b649b0f2db71f1 (diff)
downloadopenttd-bea03ab5e72e83aa851f30e22c5c53f4a5c0d85d.tar.xz
(svn r13079) -Fix: certain compilers give false warning about uninitialized variable
Diffstat (limited to 'src/depot_gui.cpp')
-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 f490e58de..5653c8b7a 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -503,7 +503,7 @@ struct DepotWindow : Window {
void DepotClick(int x, int y)
{
- GetDepotVehiclePtData gdvp;
+ GetDepotVehiclePtData gdvp = { NULL, NULL };
Vehicle *v = NULL;
DepotGUIAction mode = this->GetVehicleFromDepotWndPt(x, y, &v, &gdvp);