diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/autoreplace_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index 5785968cf..b72338021 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -319,6 +319,8 @@ static CommandCost BuildReplacementVehicle(Vehicle *old_veh, Vehicle **new_vehic /* 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); |