summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 18881c719..a4994f3ec 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -4434,7 +4434,7 @@ void ConnectMultiheadedTrains()
}
FOR_ALL_VEHICLES(v) {
- if (v->type == VEH_TRAIN) {
+ if (v->type == VEH_TRAIN && (IsFrontEngine(v) || IsFreeWagon(v))) {
/* Two ways to associate multiheaded parts to each other:
* sequential-matching: Trains shall be arranged to look like <..>..<..>..<..>..
* bracket-matching: Free vehicle chains shall be arranged to look like ..<..<..>..<..>..>..