(svn r5856) - Backport from trunk (r3598):

Suppress invalid warning by assigning value to variable
This commit is contained in:
Darkvater 2006-08-12 12:01:20 +00:00
parent 6f920cee6c
commit a597fd50e6
1 changed files with 1 additions and 1 deletions

View File

@ -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;