diff options
author | michi_cc <michi_cc@openttd.org> | 2011-11-04 00:38:51 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-11-04 00:38:51 +0000 |
commit | f200ffa90c6f3835468d5cc2ae79499b9058bd7b (patch) | |
tree | b686f5dbd85948cad46307e4d64074463203d79a /src/autoreplace_cmd.cpp | |
parent | b9841bba816d20de692e159ac6b80ddd0c202fa7 (diff) | |
download | openttd-f200ffa90c6f3835468d5cc2ae79499b9058bd7b.tar.xz |
(svn r23087) -Feature: Auto-refitting of vehicles during loading at a station when the vehicle allows it.
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r-- | src/autoreplace_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index 67387130f..39e294f6c 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -142,7 +142,7 @@ static bool VerifyAutoreplaceRefitForOrders(const Vehicle *v, EngineID engine_ty const Order *o; const Vehicle *u = (v->type == VEH_TRAIN) ? v->First() : v; FOR_VEHICLE_ORDERS(u, o) { - if (!o->IsRefit()) continue; + if (!o->IsRefit() || o->IsAutoRefit()) continue; CargoID cargo_type = o->GetRefitCargo(); if (!HasBit(union_refit_mask_a, cargo_type)) continue; |