(svn r5856) - Backport from trunk (r3598): 0.4
authorDarkvater
Sat, 12 Aug 2006 12:01:20 +0000
branch0.4
changeset 10071 43992016c7c8
parent 10070 308b88d1851f
child 10072 e9bd7b46e732
(svn r5856) - Backport from trunk (r3598):
Suppress invalid warning by assigning value to variable
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;