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
commita152d420a53995f97eb98724ee1a58f63ab0d7ff (patch)
treef078c7f80286ebaf914f384d331b885d7a283d00 /src/depot_gui.cpp
parentcf91f6bf3e6db20eda745703a0b10e37012366ad (diff)
downloadopenttd-a152d420a53995f97eb98724ee1a58f63ab0d7ff.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);