(svn r13091) -Fix: certain compilers give false warning about uninitialized variable
authorsmatz
Wed, 14 May 2008 18:35:15 +0000
changeset 9225 1158928d629a
parent 9224 93528d9cb96d
child 9226 8d5b5e23c9c9
(svn r13091) -Fix: certain compilers give false warning about uninitialized variable
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) {