Codechange: Don't access SmallMapWindow method directly from LinkGraphOverlay.

This commit is contained in:
Peter Nelson
2023-10-31 01:29:16 +00:00
committed by Peter Nelson
parent ff5e8bb9a3
commit f91462f54b
3 changed files with 13 additions and 1 deletions

View File

@@ -425,7 +425,7 @@ Point LinkGraphOverlay::GetStationMiddle(const Station *st) const
return GetViewportStationMiddle(this->window->viewport, st);
} else {
/* assume this is a smallmap */
return static_cast<const SmallMapWindow *>(this->window)->GetStationMiddle(st);
return GetSmallMapStationMiddle(this->window, st);
}
}