From aa9e8b422c93231c8270520a5beee524a343e4ac Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Tue, 29 Apr 2025 23:52:11 +0100 Subject: [PATCH] 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. --- src/company_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 80e135198a..d4146c5189 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -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); }