mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-21 19:32:54 +01:00
Codechange: replace 'new PoolItem(...' with 'PoolItem::Create(...'
This commit is contained in:
@@ -263,7 +263,7 @@ Engine *GetNewEngine(const GRFFile *file, VehicleType type, uint16_t internal_id
|
||||
size_t engine_pool_size = Engine::GetPoolSize();
|
||||
|
||||
/* ... it's not, so create a new one based off an existing engine */
|
||||
Engine *e = new Engine(type, internal_id);
|
||||
Engine *e = Engine::Create(type, internal_id);
|
||||
e->grf_prop.SetGRFFile(file);
|
||||
|
||||
/* Reserve the engine slot */
|
||||
|
||||
Reference in New Issue
Block a user