(svn r16884) -Codechange: Add Train::GetFirstEnginePart() and use it.
This commit is contained in:
@@ -453,10 +453,7 @@ struct DepotWindow : Window {
|
||||
if (x < 0) break;
|
||||
}
|
||||
|
||||
/* if an articulated part was selected, find its parent */
|
||||
while (v != NULL && v->IsArticulatedPart()) v = v->Previous();
|
||||
|
||||
d->wagon = v;
|
||||
d->wagon = (v != NULL ? v->GetFirstEnginePart() : NULL);
|
||||
|
||||
return MODE_DRAG_VEHICLE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user