Changeset - r24822:4bce81fd6257
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 3 years ago 2021-02-18 09:50:33
j.g.rennison@gmail.com
Fix: Autorenew failure advice due to bad refit being shown to all companies (#8681)
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/autoreplace_cmd.cpp
Show inline comments
 
@@ -319,6 +319,8 @@ static CommandCost BuildReplacementVehic
 
	/* Does it need to be refitted */
 
	CargoID refit_cargo = GetNewCargoTypeForReplace(old_veh, e, part_of_chain);
 
	if (refit_cargo == CT_INVALID) {
 
		if (!IsLocalCompany()) return CommandCost();
 

	
 
		SetDParam(0, old_veh->index);
 

	
 
		int order_id = GetIncompatibleRefitOrderIdForAutoreplace(old_veh, e);
0 comments (0 inline, 0 general)