1
0
Fork 0

(svn r5674) - Backport from trunk (r5664):

Certain combinations of trains crash when moved around inside the depot.
release/0.4
Darkvater 2006-07-31 12:12:14 +00:00
parent 6c3eedee86
commit bd736e240a
1 changed files with 2 additions and 0 deletions

View File

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