Call CheckCaches after ChangeOwnershipOfCompanyItems

This commit is contained in:
Jonathan G Rennison
2019-05-16 20:06:58 +01:00
parent cb5a86754e
commit e881828d00
2 changed files with 6 additions and 0 deletions

View File

@@ -917,6 +917,9 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
CompanyAdminRemove(c_index, (CompanyRemoveReason)reason);
if (StoryPage::GetNumItems() == 0 || Goal::GetNumItems() == 0) InvalidateWindowData(WC_MAIN_TOOLBAR, 0);
extern void CheckCaches(bool force_check);
CheckCaches(true);
break;
}