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

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