Skip to content

Commit 7e8721e

Browse files
committed
fix bug that was causing all PlayerSummary objects to share the same stats dictionary
1 parent 25de528 commit 7e8721e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sc2reader/objects.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ class PlayerSummary():
273273
stats = dict()
274274

275275
def __init__(self, pid):
276-
unknown2 = dict()
277-
stats = dict()
276+
self.unknown2 = dict()
277+
self.stats = dict()
278278

279279
self.pid = pid
280280

@@ -317,4 +317,4 @@ def as_points(self):
317317
return zip(self.times, self.values)
318318

319319
def __str__(self):
320-
return "Graph with {0} values".format(len(self.times))
320+
return "Graph with {0} values".format(len(self.times))

0 commit comments

Comments
 (0)