(svn r13091) -Fix: certain compilers give false warning about uninitialized variable

This commit is contained in:
smatz
2008-05-14 18:35:15 +00:00
parent 2be223fc03
commit f0e2d800ee

View File

@@ -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) {