From 75d53525d25a0b4fa7b7c78d1d1c2643d3b96b0e Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 9 Sep 2020 01:01:23 +0100 Subject: [PATCH] Fix town label colour not being updated when switching companies --- src/company_cmd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 6bfbfee2ec..0bd5dda5dc 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -117,6 +117,12 @@ void SetLocalCompany(CompanyID new_company) /* Delete any construction windows... */ if (switching_company) DeleteConstructionWindows(); + if (switching_company && Company::IsValidID(new_company)) { + for (Town *town : Town::Iterate()) { + town->UpdateLabel(); + } + } + /* ... and redraw the whole screen. */ MarkWholeScreenDirty(); InvalidateWindowClassesData(WC_SIGN_LIST, -1);