# HG changeset patch # User SamuXarick <43006711+SamuXarick@users.noreply.github.com> # Date 2022-11-07 22:54:04 # Node ID d2c5d77e0db585eae38875905beb5137857e1c1b # Parent 312c59d56052820bd6b1aa8815dcb9dfd74f6365 Fix: Refresh company window when switching companies (#9910) diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -115,8 +115,11 @@ void SetLocalCompany(CompanyID new_compa _current_company = _local_company = new_company; - /* Delete any construction windows... */ - if (switching_company) CloseConstructionWindows(); + if (switching_company) { + InvalidateWindowClassesData(WC_COMPANY); + /* Delete any construction windows... */ + CloseConstructionWindows(); + } /* ... and redraw the whole screen. */ MarkWholeScreenDirty();