diff options
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -358,7 +358,7 @@ Vehicle *GetPrevVehicleInChain(const Vehicle *v) { 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; } |