Skip to content

Commit ca2213a

Browse files
committed
Fix issue loading stats for 4 part s2gs files.
1 parent dbe2a30 commit ca2213a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sc2reader/resources.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,8 @@ def load_player_stats(self):
843843
#
844844
# Value is as seen on the score screen in game.
845845
stats_items = self.parts[3][0]
846-
if len(self.parts) >= 4: stats_items.append(self.parts[4][0][1])
846+
if len(self.parts) > 4:
847+
stats_items.append(self.parts[4][0][1])
847848

848849
for item in stats_items:
849850
stat_name = self.translations['enUS'][item[0][1]]

0 commit comments

Comments
 (0)