diff options
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r-- | lib/Travelynx/Command/work.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 09649a3..a02618b 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -46,10 +46,10 @@ sub run { my $found_dep; my $found_arr; for my $stop ( $journey->route ) { - if ( $stop->eva == $dep ) { + if ( $stop->loc->eva == $dep ) { $found_dep = $stop; } - if ( $arr and $stop->eva == $arr ) { + if ( $arr and $stop->loc->eva == $arr ) { $found_arr = $stop; last; } |