Skip to content

Commit 7654702

Browse files
committed
The 8th field in details is the outcome not team
1 parent dd64072 commit 7654702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sc2reader/readers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def read(self, buffer, replay):
9696
data = buffer.read_data_struct()
9797

9898
for pid, pdata in enumerate(data[0]):
99-
fields = ('name','battlenet','race','color','??','??','handicap','??','team',)
99+
fields = ('name','battlenet','race','color','??','??','handicap','??','outcome',)
100100
pdata = dict(zip(fields, [pdata[i] for i in sorted(pdata.keys())]))
101101

102102
# TODO?: get a map of realm,subregion => region in here
@@ -124,7 +124,7 @@ def read(self, buffer, replay):
124124
player.color = COLOR_CODES.get(color_rgb, color_rgb)
125125
player.color_rgba = color
126126

127-
player.team = pdata['team']
127+
player.outcome = pdata['outcome']
128128

129129
# Add player to replay
130130
replay.players.append(player)

0 commit comments

Comments
 (0)