Skip to content

Commit

Permalink
ACC: Proper quickfix for setting lap driver when driver index is not …
Browse files Browse the repository at this point in the history
…found
  • Loading branch information
mauserrifle committed Jun 18, 2024
1 parent dd4b7ec commit 4c2678e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Simresults/Data/Reader/AssettoCorsaCompetizione.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ protected function readSessions()
}

// Set driver based on driver index (swapping support)
$lap->setDriver($lap_participant->getDriver($driverIndex+1) ?:$lap_participant->getDriver(0));
$lap->setDriver($lap_participant->getDriver($driverIndex+1) ?:$lap_participant->getDriver(1));

// Is valid for best?
$valid_for_best = $this->helper->arrayGet($lap_data, 'isValidForBest');
Expand Down

0 comments on commit 4c2678e

Please sign in to comment.