[Fix] Don't show station viewport tooltip when hovering over anything other then a normal station (such as a waypoint).
This commit is contained in:
@@ -269,7 +269,9 @@ void ShowTownNameTooltip(Window *w, const TileIndex tile)
|
||||
void ShowStationViewportTooltip(Window *w, const TileIndex tile)
|
||||
{
|
||||
const StationID station_id = GetStationIndex(tile);
|
||||
const Station *station = Station::Get(station_id);
|
||||
const Station *station = Station::GetIfValid(station_id);
|
||||
|
||||
if (station == nullptr) return;
|
||||
|
||||
std::string msg;
|
||||
|
||||
|
Reference in New Issue
Block a user