Skip to content

Commit cb110b8

Browse files
committed
Properly scope the Length class.
1 parent 5ab9f1e commit cb110b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sc2reader/resources.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def __init__(self, replay_file, filename=None, load_level=4, **options):
235235
if load_level >= 0:
236236
# Set ('versions', 'frames', 'build', 'release_string', 'length')
237237
self.__dict__.update(utils.read_header(replay_file))
238+
self.length = utils.Length(seconds=int(self.frames/self.game_fps))
238239
self.expansion = ['','WoL','HotS'][self.versions[1]]
239240
self.archive = utils.open_archive(replay_file)
240241

0 commit comments

Comments
 (0)