Ctrl+click on shared list button in order/timetable window to add veh to group

This commit is contained in:
Jonathan G Rennison
2017-08-18 19:17:16 +01:00
parent 4255d8a131
commit 2e7e712f06
7 changed files with 72 additions and 4 deletions

View File

@@ -200,6 +200,12 @@ bool GenerateVehicleSortList(VehicleList *list, const VehicleListIdentifier &vli
break;
}
case VL_SINGLE_VEH: {
v = Vehicle::GetIfValid(vli.index);
if (v != NULL) *list->Append() = v;
break;
}
default: return false;
}