Fix cases where departures board data was not invalidated

This commit is contained in:
Jonathan G Rennison
2020-03-09 08:51:15 +00:00
parent 749b9da602
commit cb6a01cab3
7 changed files with 21 additions and 0 deletions

View File

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