mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 19:02:41 +01:00
Codechange: replace 'new PoolItem(...' with 'PoolItem::Create(...'
This commit is contained in:
@@ -269,7 +269,7 @@ CommandCost CmdBuildRoadVehicle(DoCommandFlags flags, TileIndex tile, const Engi
|
||||
if (flags.Test(DoCommandFlag::Execute)) {
|
||||
const RoadVehicleInfo *rvi = &e->VehInfo<RoadVehicleInfo>();
|
||||
|
||||
RoadVehicle *v = new RoadVehicle();
|
||||
RoadVehicle *v = RoadVehicle::Create();
|
||||
*ret = v;
|
||||
v->direction = DiagDirToDir(GetRoadDepotDirection(tile));
|
||||
v->owner = _current_company;
|
||||
|
||||
Reference in New Issue
Block a user