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 GitHub
parent 66a984afd7
commit 1be668c2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1327,6 +1327,7 @@ CommandCost CmdMoveRailVehicle(DoCommandFlag flags, VehicleID src_veh, VehicleID
/* Remove stuff not valid anymore for non-front engines. */
DeleteVehicleOrders(src);
src->unitnumber = 0;
src->name.clear();
}
/* We weren't a front engine but are becoming one. So