summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-12-02 19:21:00 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-12-02 19:21:00 +0100
commitc1bfa037bbcc93b9586939dba90eb1a01ae23bd4 (patch)
tree2706f1414eda65284a07ee7fcbcfd867bc9c7c3c
parent715083fe6a209e44160a2fc47e3ddb9888525c77 (diff)
hafas-m: do not alter $stop->arr in --via mode
-rwxr-xr-xbin/hafas-m3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index 5b15117..2bf2e5a 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -514,7 +514,8 @@ for my $d (@results) {
. (
$stop->arr_cancelled
? '--:--'
- : $stop->arr->add( minutes => $d->delay // 0 )->strftime('%H:%M')
+ : $stop->arr->clone->add( minutes => $d->delay // 0 )
+ ->strftime('%H:%M')
);
}