Fixed the graph for races where somebody retired in the first lap

This commit is contained in:
Maschell 2017-12-31 16:54:30 +01:00
parent 2c8bb534b9
commit 1bfdd3d543

View File

@ -521,7 +521,7 @@ function createLineGraph(containerId, raceData){
break; break;
} }
_lap--; _lap--;
if(_lap < 0) break; if(_lap <= 0) break;
} }
}else{ }else{
if(raceData.lapTimes.get(lapNr)[pos-1]){ if(raceData.lapTimes.get(lapNr)[pos-1]){