Codechange: Don't access SmallMapWindow method directly from LinkGraphOverlay.
This commit is contained in:

committed by
Peter Nelson

parent
ff5e8bb9a3
commit
f91462f54b
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user