summaryrefslogtreecommitdiff
path: root/src
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
commitf0e2d800ee59011ff6a27c27a1c84b0135ae8857 (patch)
tree223a665cb90af1dbda6d798b4d4f9291a36accad /src
parent2be223fc03a8f4812d9ae38b1084572b903710a3 (diff)
downloadopenttd-f0e2d800ee59011ff6a27c27a1c84b0135ae8857.tar.xz
(svn r13091) -Fix: certain compilers give false warning about uninitialized variable
Diffstat (limited to 'src')
-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) {