vehicle.c
changeset 1652 201cbfba7797
parent 1635 ffa1e2e1cbf2
child 1663 67055791af8c
--- a/vehicle.c	Wed Apr 06 09:34:56 2005 +0000
+++ b/vehicle.c	Wed Apr 06 15:39:18 2005 +0000
@@ -358,7 +358,7 @@
 {
 	Vehicle *u;
 
-	FOR_ALL_VEHICLES(u) if (u->next == v) return u;
+	FOR_ALL_VEHICLES(u) if (u->type == VEH_Train && u->next == v) return u;
 
 	return NULL;
 }