mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
Codechange: make EngineID an enum
This commit is contained in:
@@ -1332,7 +1332,7 @@ void CommitVehicleListOrderChanges()
|
||||
{
|
||||
/* Build a list of EngineIDs. EngineIDs are sequential from 0 up to the number of pool items with no gaps. */
|
||||
std::vector<EngineID> ordering(Engine::GetNumItems());
|
||||
std::iota(std::begin(ordering), std::end(ordering), 0);
|
||||
std::iota(std::begin(ordering), std::end(ordering), ENGINE_BEGIN);
|
||||
|
||||
/* Pre-sort engines by scope-grfid and local index */
|
||||
std::ranges::sort(ordering, EnginePreSort);
|
||||
|
||||
Reference in New Issue
Block a user