Link graph: Fix typo in method name

This commit is contained in:
Jonathan G Rennison
2024-01-24 18:58:00 +00:00
parent 3017660e5d
commit ba5d3588aa
3 changed files with 3 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ void LinkGraphOverlay::MarkStationViewportLinksDirty(const Station *st)
/** /**
* Rebuild the cache using RebuildCache, and return whether a re-draw is required. * Rebuild the cache using RebuildCache, and return whether a re-draw is required.
*/ */
bool LinkGraphOverlay::RebuildCacheCheckCahnged() bool LinkGraphOverlay::RebuildCacheCheckChanged()
{ {
static LinkList prev_cached_links; static LinkList prev_cached_links;
static StationSupplyList prev_cached_stations; static StationSupplyList prev_cached_stations;

View File

@@ -79,7 +79,7 @@ public:
window(w), widget_id(wid), cargo_mask(cargo_mask), company_mask(company_mask), scale(scale), dirty(true) window(w), widget_id(wid), cargo_mask(cargo_mask), company_mask(company_mask), scale(scale), dirty(true)
{} {}
bool RebuildCacheCheckCahnged(); bool RebuildCacheCheckChanged();
void RebuildCache(bool incremental = false); void RebuildCache(bool incremental = false);
bool CacheStillValid() const; bool CacheStillValid() const;
void MarkStationViewportLinksDirty(const Station *st); void MarkStationViewportLinksDirty(const Station *st);

View File

@@ -271,7 +271,7 @@ struct MainWindow : Window
return; return;
} }
if (this->viewport->overlay->RebuildCacheCheckCahnged()) { if (this->viewport->overlay->RebuildCacheCheckChanged()) {
this->GetWidget<NWidgetBase>(WID_M_VIEWPORT)->SetDirty(this); this->GetWidget<NWidgetBase>(WID_M_VIEWPORT)->SetDirty(this);
} }
} }