summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-14 18:35:15 +0000
committersmatz <smatz@openttd.org>2008-05-14 18:35:15 +0000
commit7890344bbd235aaa4c34c7a5b1bbe3981a9e1dc2 (patch)
tree223a665cb90af1dbda6d798b4d4f9291a36accad
parentec627dedf884069a1cbca8ebf524d761e755493c (diff)
downloadopenttd-7890344bbd235aaa4c34c7a5b1bbe3981a9e1dc2.tar.xz
(svn r13091) -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 5653c8b7a..4a55985ab 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -889,7 +889,7 @@ struct DepotWindow : Window {
this->SetDirty();
if (this->type == VEH_TRAIN) {
- GetDepotVehiclePtData gdvp;
+ GetDepotVehiclePtData gdvp = { NULL, NULL };
if (this->GetVehicleFromDepotWndPt(pt.x, pt.y, &v, &gdvp) == MODE_DRAG_VEHICLE &&
sel != INVALID_VEHICLE) {