Fixes first action index

hh
Laurent 5 years ago
parent 39fc5bc5f6
commit b19fa6823d
  1. 2
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerConfiguration.kt

@ -24,7 +24,7 @@ class ReplayerConfiguration(var handHistory: HandHistory) {
this.actionList.load(this.handHistory)
this.lastBlindIndex = max(this.actionList.indexOfLast { it.action.type?.isBlind == true }, 0)
this.currentStep = this.lastBlindIndex // initialize at big blind
this.currentStep = this.lastBlindIndex + 1 // initialize at big blind
this.steps = HandStep.createSteps(this.handHistory)
}

Loading…
Cancel
Save