mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-07 12:59:43 +01:00
(svn r5856) - Backport from trunk (r3598):
Suppress invalid warning by assigning value to variable
This commit is contained in:
parent
6f920cee6c
commit
a597fd50e6
@ -2012,7 +2012,7 @@ uint32 VehicleEnterTile(Vehicle *v, TileIndex tile, int x, int y)
|
|||||||
|
|
||||||
UnitID GetFreeUnitNumber(byte type)
|
UnitID GetFreeUnitNumber(byte type)
|
||||||
{
|
{
|
||||||
UnitID unit, max;
|
UnitID unit, max = 0;
|
||||||
const Vehicle *u;
|
const Vehicle *u;
|
||||||
static bool *cache = NULL;
|
static bool *cache = NULL;
|
||||||
static UnitID gmax = 0;
|
static UnitID gmax = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user