mirror of https://github.com/OpenTTD/OpenTTD
(svn r5674) - Backport from trunk (r5664):
Certain combinations of trains crash when moved around inside the depot.release/0.4
parent
6c3eedee86
commit
bd736e240a
|
@ -1130,6 +1130,8 @@ int32 CmdMoveRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue