summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-02-13 21:47:02 +0000
committertruelight <truelight@openttd.org>2006-02-13 21:47:02 +0000
commitd83711fb2eb8b01a661392aa72927a5a48b98191 (patch)
treef836050a2b8e12476f25a785729989dda76f1853
parent5352e9fbcbd3b4dca63746f5cf74b1541b8ebb6c (diff)
downloadopenttd-d83711fb2eb8b01a661392aa72927a5a48b98191.tar.xz
(svn r3598) -Fix: suppress invalid warning by assigning value to variable
-rw-r--r--vehicle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index 7467198d5..97b186b22 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -2004,7 +2004,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;