Mercurial > hg > openttd
changeset 9225:1e40b8e2533d draft
(svn r13091) -Fix: certain compilers give false warning about uninitialized variable
author | smatz <smatz@openttd.org> |
---|---|
date | Wed, 14 May 2008 18:35:15 +0000 |
parents | c8a0fa0e208a |
children | 843042b3278b |
files | src/depot_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -889,7 +889,7 @@ 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) {