diff options
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 562f9e2b1..0006c564f 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -369,7 +369,7 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner) } else { v->owner = new_owner; v->colourmap = PAL_NONE; - if (IsEngineCountable(v)) Company::Get(new_owner)->num_engines[v->engine_type]++; + if (v->IsEngineCountable()) Company::Get(new_owner)->num_engines[v->engine_type]++; if (v->IsPrimaryVehicle()) v->unitnumber = unitidgen[v->type].NextID(); } } |