mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Call CheckCaches after ChangeOwnershipOfCompanyItems
This commit is contained in:
parent
20ec534380
commit
c79c20b34f
@ -901,6 +901,9 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
|||||||
CompanyAdminRemove(c_index, (CompanyRemoveReason)reason);
|
CompanyAdminRemove(c_index, (CompanyRemoveReason)reason);
|
||||||
|
|
||||||
if (StoryPage::GetNumItems() == 0 || Goal::GetNumItems() == 0) InvalidateWindowData(WC_MAIN_TOOLBAR, 0);
|
if (StoryPage::GetNumItems() == 0 || Goal::GetNumItems() == 0) InvalidateWindowData(WC_MAIN_TOOLBAR, 0);
|
||||||
|
|
||||||
|
extern void CheckCaches(bool force_check);
|
||||||
|
CheckCaches(true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1989,6 +1989,9 @@ static void DoAcquireCompany(Company *c)
|
|||||||
InvalidateWindowClassesData(WC_AIRCRAFT_LIST, 0);
|
InvalidateWindowClassesData(WC_AIRCRAFT_LIST, 0);
|
||||||
|
|
||||||
delete c;
|
delete c;
|
||||||
|
|
||||||
|
extern void CheckCaches(bool force_check);
|
||||||
|
CheckCaches(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int GetAmountOwnedBy(const Company *c, Owner owner);
|
extern int GetAmountOwnedBy(const Company *c, Owner owner);
|
||||||
|
Loading…
Reference in New Issue
Block a user