summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 0f7b289..41abeed 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -541,7 +541,8 @@ sub startup {
my ($journey) = @_;
my $found;
for my $stop ( $journey->route ) {
- if ( $stop->name eq $station or $stop->eva == $station )
+ if ( $stop->loc->name eq $station
+ or $stop->loc->eva == $station )
{
$found = $stop;
last;