diff options
author | emkael <emkael@tlen.pl> | 2017-05-04 15:40:25 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-05-09 02:51:04 +0200 |
commit | be579d2034f168e332bd203ffeb45b3eea42a3ea (patch) | |
tree | 6fbf658854e5ee52983afb6cb7d45f0ade4259c2 /ausbutler | |
parent | 023723a3f1fd6e0962f47e488b234ef9d0ca25b3 (diff) |
Bugfix for indexing segments
Diffstat (limited to 'ausbutler')
-rw-r--r-- | ausbutler/interface.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ausbutler/interface.py b/ausbutler/interface.py index 4f55850..d793bc9 100644 --- a/ausbutler/interface.py +++ b/ausbutler/interface.py @@ -239,7 +239,7 @@ class Interface(object): players[butler.id]['count'] += butler.board_count players[butler.id]['results'][ ((butler.match - 1) * Constants.segmentsperround + - butler.segment) if butler.match > 0 else 0 + (butler.segment - 1)) if butler.match > 0 else 0 ] = butler.corrected_score for player in players.values(): if player['count'] > 0: |