(svn r18462) -Fix: when moving a wagon and only the last part of a dual headed engine you could split the dual headed engine over two vehicles.

This commit is contained in:
rubidium 2009-12-11 19:27:48 +00:00
parent db4e547e24
commit b8a7efc450

View File

@ -1069,10 +1069,6 @@ static void AddWagonToConsist(Train *v, Train *dest)
*/
static void NormaliseTrainConsist(Train *v)
{
if (v->IsFreeWagon()) return;
assert(v->IsFrontEngine());
for (; v != NULL; v = v->GetNextVehicle()) {
if (!v->IsMultiheaded() || !v->IsEngine()) continue;