# HG changeset patch # User Darkvater # Date 1155384080 0 # Node ID 43992016c7c8597b0448d11b85f613fb1b6fd969 # Parent 308b88d1851f9914f17a7adc974b0e5c84314a66 (svn r5856) - Backport from trunk (r3598): Suppress invalid warning by assigning value to variable diff -r 308b88d1851f -r 43992016c7c8 vehicle.c --- 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;