train_cmd.c
changeset 2135 08120c3cf43e
parent 2125 edc17858f9f6
child 2140 a04d0142ad65
--- a/train_cmd.c	Tue Jul 19 22:12:04 2005 +0000
+++ b/train_cmd.c	Tue Jul 19 22:29:35 2005 +0000
@@ -47,7 +47,7 @@
 		vweight += rvi->weight;
 		vweight += (_cargoc.weights[u->cargo_type] * u->cargo_count) / 16;
 		// powered wagons have extra weight added
-		if HASBIT(u->u.rail.flags, VRF_POWEREDWAGON)
+		if (HASBIT(u->u.rail.flags, VRF_POWEREDWAGON))
 			vweight += RailVehInfo(v->engine_type)->pow_wag_weight;
 
 		// consist weight is the sum of the weight of all vehicles in the consist