Call CheckCaches after ChangeOwnershipOfCompanyItems

pull/91/head
Jonathan G Rennison 5 years ago
parent cb5a86754e
commit e881828d00

@ -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;
}

@ -2229,6 +2229,9 @@ static void DoAcquireCompany(Company *c)
InvalidateWindowClassesData(WC_AIRCRAFT_LIST, 0);
delete c;
extern void CheckCaches(bool force_check);
CheckCaches(true);
}
extern int GetAmountOwnedBy(const Company *c, Owner owner);

Loading…
Cancel
Save