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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user