(svn r11567) -Fix [FS#1512] (r11011): break the chain before moving a vehicle after another in the same chain

This commit is contained in:
glx 2007-12-04 15:32:54 +00:00
parent 05fca79cf0
commit 0f43982c72
1 changed files with 1 additions and 0 deletions

View File

@ -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);