Changeset - r27311:66a19ec65f57
[Not reviewed]
master
0 1 0
Michael Lutz - 13 months ago 2023-05-09 20:27:35
michi@icosahedron.de
Codechange: A vehicle that is not a front engine can't be removed from a vehicle group, so just remove a pointless function call.
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/train_cmd.cpp
Show inline comments
 
@@ -1322,13 +1322,12 @@ CommandCost CmdMoveRailVehicle(DoCommand
 
			DeleteNewGRFInspectWindow(GSF_TRAINS, src->index);
 
			SetWindowDirty(WC_COMPANY, _current_company);
 

	
 
			/* Delete orders, group stuff and the unit number as we're not the
 
			 * front of any vehicle anymore. */
 
			DeleteVehicleOrders(src);
 
			RemoveVehicleFromGroup(src);
 
			src->unitnumber = 0;
 
		}
 

	
 
		/* We weren't a front engine but are becoming one. So
 
		 * we should be put in the default group. */
 
		if (original_src_head != src && dst_head == src) {
0 comments (0 inline, 0 general)