Fix: Refresh company window when switching companies (#9910)
This commit is contained in:
@@ -115,8 +115,11 @@ void SetLocalCompany(CompanyID new_company)
|
|||||||
|
|
||||||
_current_company = _local_company = new_company;
|
_current_company = _local_company = new_company;
|
||||||
|
|
||||||
/* Delete any construction windows... */
|
if (switching_company) {
|
||||||
if (switching_company) CloseConstructionWindows();
|
InvalidateWindowClassesData(WC_COMPANY);
|
||||||
|
/* Delete any construction windows... */
|
||||||
|
CloseConstructionWindows();
|
||||||
|
}
|
||||||
|
|
||||||
/* ... and redraw the whole screen. */
|
/* ... and redraw the whole screen. */
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
|
Reference in New Issue
Block a user