Fix bd2649c1: Assertion failure when opening group window for non-first company

This commit is contained in:
Jonathan G Rennison
2020-10-08 00:03:23 +01:00
parent e684135e4a
commit 28405b00a4

View File

@@ -390,7 +390,7 @@ private:
for (uint i = 0; i < vehicle_count; i++) {
const Vehicle *v = this->vehicles[i];
assert(v->owner == this->owner);
assert(v->owner == this->vli.company);
this_year += v->GetDisplayProfitThisYear();
last_year += v->GetDisplayProfitLastYear();