(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 411dec5c3e
commit 06c131b244

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