summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-06-02 11:47:19 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-06-02 11:47:19 +0200
commit41cc5f3c254ecfd328a5bcab9ff5eba2023527a8 (patch)
tree58c74db042e8e22ccc6b38106a174f397f48755c /lib/Travelynx/Command
parentf0e169cbfdeffb96cc03153fd5b607fb00a1c63d (diff)
work: check arr on arr, not on dep2.6.14
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r--lib/Travelynx/Command/work.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index 2ef83b0..8ae918e 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -87,7 +87,7 @@ sub run {
arr_eva => $arr
);
if ( $journey->class <= 16
- and $found_dep->rt_arr->epoch - $now->epoch < 600 )
+ and $found_arr->rt_arr->epoch - $now->epoch < 600 )
{
$self->app->add_wagonorder( $uid, 0, $train_id,
$found_dep->sched_dep, $journey->number );