Update to 14.0

This commit is contained in:
dP
2024-04-14 01:56:35 +07:00
parent 872e715374
commit 14504ff3b2
73 changed files with 1780 additions and 1570 deletions

View File

@@ -1336,8 +1336,7 @@ CommandCost CmdMoveRailVehicle(DoCommandFlag flags, VehicleID src_veh, VehicleID
}
/* Remove stuff not valid anymore for non-front engines. */
DeleteVehicleOrders(src);
Company::Get(src->owner)->freeunits[src->type].ReleaseID(src->unitnumber);
src->unitnumber = 0;
src->ReleaseUnitNumber();
src->name.clear();
}