Skip to content

Commit

Permalink
Fix initdata parsing for base_build 23260 replays.
Browse files Browse the repository at this point in the history
  • Loading branch information
GraylinKim committed Dec 14, 2013
1 parent f012566 commit 4b45b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc2reader/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __call__(self, data, replay):
is_single_player=data.read_bool(),
game_duration=data.read_uint32(),
default_difficulty=data.read_bits(6),
default_ai_build=data.read_bits(7) if replay.base_build >= 23260 else None,
default_ai_build=data.read_bits(7) if replay.base_build >= 24764 else None,
),
)
if not data.done():
Expand Down

0 comments on commit 4b45b62

Please sign in to comment.