diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travel/Status/DE/DBWagenreihung.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm index ea37382..1952646 100644 --- a/lib/Travel/Status/DE/DBWagenreihung.pm +++ b/lib/Travel/Status/DE/DBWagenreihung.pm @@ -102,6 +102,12 @@ sub errstr { sub direction { my ($self) = @_; + if ( not exists $self->{direction} ) { + + # direction is set while parsing wagons + $self->wagons; + } + return $self->{direction}; } |