summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-04 15:32:54 +0000
committerglx <glx@openttd.org>2007-12-04 15:32:54 +0000
commit0f43982c72af405d43d33733b3fcce284bb51916 (patch)
tree441b10e19479100203777edb9e772a80ca585469 /src
parent05fca79cf05a72e03052b0f2312d4c6081853f5a (diff)
downloadopenttd-0f43982c72af405d43d33733b3fcce284bb51916.tar.xz
(svn r11567) -Fix [FS#1512] (r11011): break the chain before moving a vehicle after another in the same chain
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 05d95613e..5a4c854fe 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -885,6 +885,7 @@ static void AddWagonToConsist(Vehicle *v, Vehicle *dest)
if (dest == NULL) return;
Vehicle *next = dest->Next();
+ v->SetNext(NULL);
dest->SetNext(v);
v->SetNext(next);
ClearFreeWagon(v);