src/yapf/yapf_costrail.hpp
branchgamebalance
changeset 9895 7bd07f43b0e3
parent 6480 767cfeae4dbf
child 6719 4cc327ad39d5
--- a/src/yapf/yapf_costrail.hpp	Mon Mar 19 09:33:17 2007 +0000
+++ b/src/yapf/yapf_costrail.hpp	Mon Mar 19 12:38:16 2007 +0000
@@ -154,7 +154,7 @@
 		int cost = 0;
 		const Vehicle* v = Yapf().GetVehicle();
 		assert(v != NULL);
-		assert(v->type == VEH_Train);
+		assert(v->type == VEH_TRAIN);
 		assert(v->u.rail.cached_total_length != 0);
 		int needed_platform_length = (v->u.rail.cached_total_length + TILE_SIZE - 1) / TILE_SIZE;
 		if (platform_length > needed_platform_length) {