Fix bd2649c1
: Assertion failure when opening group window for non-first company
This commit is contained in:
@@ -390,7 +390,7 @@ private:
|
|||||||
|
|
||||||
for (uint i = 0; i < vehicle_count; i++) {
|
for (uint i = 0; i < vehicle_count; i++) {
|
||||||
const Vehicle *v = this->vehicles[i];
|
const Vehicle *v = this->vehicles[i];
|
||||||
assert(v->owner == this->owner);
|
assert(v->owner == this->vli.company);
|
||||||
|
|
||||||
this_year += v->GetDisplayProfitThisYear();
|
this_year += v->GetDisplayProfitThisYear();
|
||||||
last_year += v->GetDisplayProfitLastYear();
|
last_year += v->GetDisplayProfitLastYear();
|
||||||
|
Reference in New Issue
Block a user