Skip to content

Commit

Permalink
stats: hsave: don't choke on 'DClasses' tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ec429 committed Jul 18, 2014
1 parent 41cfe2b commit bee9dcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stats/hsave.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def __init__(self): pass
def parse(cls, f, read_init=True, check_integrity=False):
self = cls()
self.read_init = read_init
self.dclasses = None
self.difficulty = {}
stage = None
nosplit = False
Expand Down Expand Up @@ -118,6 +119,9 @@ def handle(self, tag, rest):
if tag == 'HARR':
self.ver = map(int, rest.split('.'))
return None, False
if tag == 'DClasses':
self.dclasses = int(rest)
return None, False
if tag == 'Difficulty':
dclass, level = map(int, rest.split(','))
self.difficulty[dclass] = level
Expand Down

0 comments on commit bee9dcb

Please sign in to comment.