Skip to content

Commit

Permalink
Merge pull request #76 from Yutsuten/fix-deckbrowser-error
Browse files Browse the repository at this point in the history
Fix error when opening deck settings from deck browser
  • Loading branch information
Yutsuten authored Jun 3, 2020
2 parents e2eb5b8 + b15aaa6 commit df1b420
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lifedrain/deck_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def set_deck_conf(self, conf):
current_value = conf['currentValue']
if current_value > conf['maxLife']:
current_value = conf['maxLife']
if conf['id'] not in self._bar_info:
self._add_deck(conf['id'])

deck_id = conf['id']
self._bar_info[deck_id]['maxValue'] = conf['maxLife']
Expand Down

0 comments on commit df1b420

Please sign in to comment.