mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 22:37:22 +00:00
(svn r11567) -Fix [FS#1512] (r11011): break the chain before moving a vehicle after another in the same chain
This commit is contained in:
parent
05fca79cf0
commit
0f43982c72
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user