From 529aafd257bc8f798c9dc713fa1d13db92499d6e Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 30 Jan 2017 19:30:08 +0000 Subject: [PATCH] Reset overall lifetime profit to 0 when renewing vehicle. --- src/vehicle_base.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 55966e49c3..14862645ad 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -669,6 +669,7 @@ public: this->profit_this_year = src->profit_this_year; this->profit_last_year = src->profit_last_year; + this->profit_lifetime = -this->profit_this_year; }