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

pull/195/head
Jonathan G Rennison 4 years ago
parent e684135e4a
commit 28405b00a4

@ -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();

Loading…
Cancel
Save