diff options
author | glx <glx@openttd.org> | 2007-12-04 15:32:54 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-12-04 15:32:54 +0000 |
commit | 06c131b2448b22fa8261f2ca6fc77bc89f00c36e (patch) | |
tree | 441b10e19479100203777edb9e772a80ca585469 /src/train_cmd.cpp | |
parent | 411dec5c3e75d52cfc580b0b6189eee3dc086fd7 (diff) | |
download | openttd-06c131b2448b22fa8261f2ca6fc77bc89f00c36e.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/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 1 |
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); |