vehicle.c
branch0.5
changeset 5446 68d042c57e9e
parent 5442 427c81cfd6f6
child 5495 ccc57a497257
--- a/vehicle.c	Sat Feb 24 01:39:59 2007 +0000
+++ b/vehicle.c	Sat Feb 24 01:47:26 2007 +0000
@@ -514,6 +514,7 @@
 	Vehicle* u;
 
 	assert(v != NULL);
+	assert(v->type == VEH_Train);
 
 	if (v->first != NULL) {
 		if (IsFrontEngine(v->first) || IsFreeWagon(v->first)) return v->first;