Codechange: Convert StationList from SmallVector to std::set.

This commit is contained in:
peter1138
2019-02-24 18:52:15 +00:00
committed by PeterN
parent 46aca9377b
commit ed6084523d
6 changed files with 17 additions and 11 deletions

View File

@@ -571,3 +571,8 @@ Money AirportMaintenanceCost(Owner owner)
/* 3 bits fraction for the maintenance cost factor. */
return total_cost >> 3;
}
bool StationCompare::operator() (const Station *lhs, const Station *rhs) const
{
return lhs->index < rhs->index;
}