train_cmd.c
changeset 1282 ea2ae881814c
parent 1266 eccd576e322f
child 1313 f1013ec3d318
--- a/train_cmd.c	Fri Feb 04 14:05:28 2005 +0000
+++ b/train_cmd.c	Fri Feb 04 14:24:23 2005 +0000
@@ -535,7 +535,7 @@
 	const RailVehicleInfo *rvi;
 	int value,dir;
 	Vehicle *v, *u;
-	byte unit_num;
+	UnitID unit_num;
 	Engine *e;
 	uint tile = TILE_FROM_XY(x,y);
 
@@ -774,7 +774,7 @@
 
 	// moving a loco to a new line?, then we need to assign a unitnumber.
 	if (dst == NULL && src->subtype != TS_Front_Engine && is_loco) {
-		uint unit_num = GetFreeUnitNumber(VEH_Train);
+		UnitID unit_num = GetFreeUnitNumber(VEH_Train);
 		if (unit_num > _patches.max_trains)
 			return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME);