(svn r13079) -Fix: certain compilers give false warning about uninitialized variable
authorsmatz
Tue, 13 May 2008 22:02:14 +0000
changeset 9213 67e8293d4f9a
parent 9212 5f56a631a668
child 9214 933c86db8e44
(svn r13079) -Fix: certain compilers give false warning about uninitialized variable
src/depot_gui.cpp
--- a/src/depot_gui.cpp	Tue May 13 21:50:31 2008 +0000
+++ b/src/depot_gui.cpp	Tue May 13 22:02:14 2008 +0000
@@ -503,7 +503,7 @@
 
 	void DepotClick(int x, int y)
 	{
-		GetDepotVehiclePtData gdvp;
+		GetDepotVehiclePtData gdvp = { NULL, NULL };
 		Vehicle *v = NULL;
 		DepotGUIAction mode = this->GetVehicleFromDepotWndPt(x, y, &v, &gdvp);