]> www.fi.muni.cz Git - slotcarman.git/blobdiff - SCX/Track.pm
Race state images; misc fixes.
[slotcarman.git] / SCX / Track.pm
index 2feed611c7b5394d482e1e6db8db0cbbf3cf398d..c5d464068b5e79e4418077d8a621e096205e1e54 100644 (file)
@@ -188,7 +188,7 @@ sub recalc_order {
        } (0..5);
 
        my $lap_max = $laps[$new_order[0]];
-       if (defined $lap_max && $lap_max != $self->{round}
+       if (defined $lap_max && $self->{round} && $lap_max != $self->{round}
                && (!$self->{race_rounds}
                        || $lap_max <= $self->{race_rounds})) {
                $self->{round} = $lap_max;