From 0068f19605f97de862a68da0a2340f724a9bb331 Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 13 Feb 2006 21:47:02 +0000 Subject: [PATCH] (svn r3598) -Fix: suppress invalid warning by assigning value to variable --- vehicle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle.c b/vehicle.c index 7467198d55..97b186b224 100644 --- a/vehicle.c +++ b/vehicle.c @@ -2004,7 +2004,7 @@ uint32 VehicleEnterTile(Vehicle *v, TileIndex tile, int x, int y) UnitID GetFreeUnitNumber(byte type) { - UnitID unit, max; + UnitID unit, max = 0; const Vehicle *u; static bool *cache = NULL; static UnitID gmax = 0;