MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Resort

Method Resort

src/station_gui.cpp:1149–1154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1147}
1148
1149void CargoDataEntry::Resort(CargoSortType type, SortOrder order)
1150{
1151 auto new_children = std::make_unique<CargoDataSet>(CargoSorter(type, order));
1152 new_children->merge(*this->children);
1153 this->children = std::move(new_children);
1154}
1155
1156CargoDataEntry *CargoDataEntry::Retrieve(CargoDataSet::iterator i) const
1157{

Callers 1

DrawEntriesMethod · 0.80

Calls 1

CargoSorterClass · 0.85

Tested by

no test coverage detected