--- a/vehicle.c Mon Jul 31 15:49:12 2006 +0000 +++ b/vehicle.c Sat Aug 12 12:01:20 2006 +0000 @@ -2012,7 +2012,7 @@ UnitID GetFreeUnitNumber(byte type) { - UnitID unit, max; + UnitID unit, max = 0; const Vehicle *u; static bool *cache = NULL; static UnitID gmax = 0;