Add any output from CheckCaches to desync log

This commit is contained in:
Jonathan G Rennison
2019-05-18 18:31:08 +01:00
parent 257591a32e
commit f37a93cecd
6 changed files with 56 additions and 34 deletions

View File

@@ -918,8 +918,8 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
if (StoryPage::GetNumItems() == 0 || Goal::GetNumItems() == 0) InvalidateWindowData(WC_MAIN_TOOLBAR, 0);
extern void CheckCaches(bool force_check);
CheckCaches(true);
extern void CheckCaches(bool force_check, std::function<void(const char *)> log);
CheckCaches(true, nullptr);
break;
}