Skip to content

Commit 6a828a9

Browse files
committed
handle weird update_types in create_control_group_event. failing replays now parse.
1 parent ab8d826 commit 6a828a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sc2reader/events/game.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,10 @@ def create_control_group_event(frame, pid, data):
430430
elif update_type == 3:
431431
# TODO: What could this be?!?
432432
return HotkeyEvent(frame, pid, data)
433-
elif update_type == 4:
434-
# No idea what this is but we're seeing it now in 3.0
433+
else:
434+
# No idea what this is but we're seeing update_types of 4 and 5 in 3.0
435435
return HotkeyEvent(frame, pid, data)
436+
436437

437438

438439
@loggable

0 commit comments

Comments
 (0)