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
commit0068f19605f97de862a68da0a2340f724a9bb331 (patch)
treef836050a2b8e12476f25a785729989dda76f1853
parentea73b466844a048f9f55b933f243ec19bdaaa18c (diff)
downloadopenttd-0068f19605f97de862a68da0a2340f724a9bb331.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;