changeset 3018:35cd7b11b216 draft

(svn r3598) -Fix: suppress invalid warning by assigning value to variable
author truelight <truelight@openttd.org>
date Mon, 13 Feb 2006 21:47:02 +0000
parents 0fa53a121447
children 68e650fd5ff4
files vehicle.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vehicle.c
+++ b/vehicle.c
@@ -2004,7 +2004,7 @@
 
 UnitID GetFreeUnitNumber(byte type)
 {
-	UnitID unit, max;
+	UnitID unit, max = 0;
 	const Vehicle *u;
 	static bool *cache = NULL;
 	static UnitID gmax = 0;