# HG changeset patch # User Darkvater # Date 1154347934 0 # Node ID 0cca43840d61cfd347d676abe874dcd0efb24704 # Parent 0d713ced91d5f987d78f1245c6e0db57c7124ca0 (svn r5674) - Backport from trunk (r5664): Certain combinations of trains crash when moved around inside the depot. diff -r 0d713ced91d5 -r 0cca43840d61 train_cmd.c --- a/train_cmd.c Mon Jul 31 12:11:14 2006 +0000 +++ b/train_cmd.c Mon Jul 31 12:12:14 2006 +0000 @@ -1130,6 +1130,8 @@ src_head = src_head->next; } AddWagonToConsist(src->u.rail.other_multiheaded_part, src); + // previous line set the front engine to the old front. We need to clear that + src->u.rail.other_multiheaded_part->first = NULL; } if (HASBIT(p2, 0) && src_head != NULL && src_head != src) {