(svn r13091) -Fix: certain compilers give false warning about uninitialized variable
authorsmatz
Wed, 14 May 2008 18:35:15 +0000
changeset 10547 fe1e87e92e20
parent 10546 07ab34af246e
child 10548 c57b2fcc4f26
(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) {