# HG changeset patch # User rubidium # Date 2009-06-29 19:17:23 # Node ID 648ce2db6af71c5e0e2549376b0b80323b3ff40b # Parent 8459f2c78ac86dc7553fbbb0946d485311caf420 (svn r16693) -Fix [FS#3004] (r16883): cargo income was not added to the vehicle's profit. diff --git a/src/economy.cpp b/src/economy.cpp --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1163,6 +1163,7 @@ CargoPayment::~CargoPayment() _current_company = this->front->owner; SubtractMoneyFromCompany(CommandCost(this->front->GetExpenseType(true), -this->route_profit)); + this->front->profit_this_year += this->visual_profit << 8; if (this->route_profit != 0) { if (IsLocalCompany() && !PlayVehicleSound(this->front, VSE_LOAD_UNLOAD)) {