changeset 9213:d288bb9876c7 draft

(svn r13079) -Fix: certain compilers give false warning about uninitialized variable
author smatz <smatz@openttd.org>
date Tue, 13 May 2008 22:02:14 +0000
parents cfbd67d81940
children f7d71b69b539
files src/depot_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -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);