Codechange: Pass Viewport by reference.
This means we do not have to care what type of pointer is used.
This commit is contained in:
committed by
Peter Nelson
parent
70b4beb8e7
commit
8275bbfb87
@@ -414,7 +414,7 @@ bool LinkGraphOverlay::ShowTooltip(Point pt, TooltipCloseCondition close_cond)
|
||||
Point LinkGraphOverlay::GetStationMiddle(const Station *st) const
|
||||
{
|
||||
if (this->window->viewport != nullptr) {
|
||||
return GetViewportStationMiddle(this->window->viewport, st);
|
||||
return GetViewportStationMiddle(*this->window->viewport, st);
|
||||
} else {
|
||||
/* assume this is a smallmap */
|
||||
return GetSmallMapStationMiddle(this->window, st);
|
||||
|
||||
Reference in New Issue
Block a user