# HG changeset patch # User smatz # Date 1210790115 0 # Node ID 1158928d629acde0131df29c8c783e345bea50e6 # Parent 93528d9cb96d14e55440db8c925072585632dc12 (svn r13091) -Fix: certain compilers give false warning about uninitialized variable diff -r 93528d9cb96d -r 1158928d629a src/depot_gui.cpp --- a/src/depot_gui.cpp Wed May 14 18:31:21 2008 +0000 +++ b/src/depot_gui.cpp Wed May 14 18:35:15 2008 +0000 @@ -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) {