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:
@@ -871,7 +871,7 @@ CommandCost CmdBuildShip(DoCommandFlags flags, TileIndex tile, const Engine *e,
|
||||
|
||||
const ShipVehicleInfo *svi = &e->VehInfo<ShipVehicleInfo>();
|
||||
|
||||
Ship *v = new Ship();
|
||||
Ship *v = Ship::Create();
|
||||
*ret = v;
|
||||
|
||||
v->owner = _current_company;
|
||||
|
||||
Reference in New Issue
Block a user