From 80043e688e7e70eae69e1fad6d8a26caf19e3067 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 29 Jun 2009 19:17:23 +0000 Subject: (svn r16693) -Fix [FS#3004] (r16883): cargo income was not added to the vehicle's profit. --- src/economy.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/economy.cpp') diff --git a/src/economy.cpp b/src/economy.cpp index 4c10eec62..96727c0fd 100644 --- 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)) { -- cgit v1.2.3-70-g09d2