1
0
Fork 0

Fix #14166, dfd9fbf873: Loan was no longer invalidated when refreshing finance window. (#14168)

In most cases the company loan does not change, but it should be updated in case it does.
pull/14158/head
Peter Nelson 2025-04-29 23:52:11 +01:00 committed by GitHub
parent f4ad614285
commit aa9e8b422c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -227,7 +227,9 @@ void InvalidateCompanyWindows()
if (w != nullptr) {
w->SetWidgetDirty(WID_CF_EXPS_PRICE3);
w->SetWidgetDirty(WID_CF_OWN_VALUE);
w->SetWidgetDirty(WID_CF_LOAN_VALUE);
w->SetWidgetDirty(WID_CF_BALANCE_VALUE);
w->SetWidgetDirty(WID_CF_MAXLOAN_VALUE);
}
SetWindowWidgetDirty(WC_COMPANY, cid, WID_C_DESC_COMPANY_VALUE);
}