for winning lanes mode, fixed trigger() method which has to wait for the competitors in race before selecting them

This commit is contained in:
Axel Uhl committed 2016-07-17 17:19:53 +02:00
1 parent 1ea6443aad
commit 80531e5fba
1 file changed
+1 -1
@@ -125,7 +125,7 @@ public class WinningLanesMode extends RaceBoardModeWithPerRaceCompetitors {
if (getLeaderboardForSpecificTimePoint() == null && tailLength != null && getLeaderboard() != null && getRaceColumn() != null) {
loadLeaderboardForSpecificTimePoint(getLeaderboard().name, getRaceColumn().getName(), getTimer().getTime());
}
if (!adjustedCompetitorSelection && getLeaderboardForSpecificTimePoint() != null) {
if (!adjustedCompetitorSelection && getLeaderboardForSpecificTimePoint() != null && getCompetitorsInRace() != null) {
adjustedCompetitorSelection = true;
updateCompetitorSelection();
}