work: check arr on arr, not on dep

This commit is contained in:
Birte Kristina Friesel 2024-06-02 11:47:19 +02:00
parent f0e169cbfd
commit 41cc5f3c25
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -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 );