Fix #10975: Clear a non-head engine's name (#10976)

This commit is contained in:
merni-ns 2023-06-09 20:39:36 +05:30 committed by Patric Stout
parent ab0924f14e
commit ed9895dbb5
1 changed files with 1 additions and 0 deletions

View File

@ -1320,6 +1320,7 @@ CommandCost CmdMoveRailVehicle(DoCommandFlag flags, VehicleID src_veh, VehicleID
DeleteVehicleOrders(src);
RemoveVehicleFromGroup(src);
src->unitnumber = 0;
src->name.clear();
}
/* We weren't a front engine but are becoming one. So