1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-02-01 16:44:34 +01:00

Codechange: replace 'new (index) PoolItem(...' with 'PoolItem::CreateAtIndex(index, ...'

This commit is contained in:
Rubidium
2026-01-03 12:10:20 +01:00
committed by rubidium42
parent 2fcd4e189a
commit ee9e8ab9b2
25 changed files with 95 additions and 67 deletions

View File

@@ -609,7 +609,7 @@ void SetupEngines()
assert(std::size(mapping) >= _engine_counts[type]);
for (const EngineIDMapping &eid : mapping) {
new (eid.engine) Engine(type, eid.internal_id);
Engine::CreateAtIndex(eid.engine, type, eid.internal_id);
}
}
}