From a597fd50e68387af6172fb37a4335b4f6f0d2d7b Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 12 Aug 2006 12:01:20 +0000 Subject: [PATCH] (svn r5856) - Backport from trunk (r3598): 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 9046b8234a..ad01f3af84 100644 --- a/vehicle.c +++ b/vehicle.c @@ -2012,7 +2012,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;