mirror of
https://github.com/Lekensteyn/lglaf.git
synced 2025-02-17 00:30:29 -05:00
parse-props.py: fix assert failure
This commit is contained in:
parent
a1208e6723
commit
94c0dc5ac2
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ def print_shadow(shadow):
|
|||
print("%03x: %-16s %-16s" % (offset, line1, line2))
|
||||
|
||||
def parse_data(data):
|
||||
version = struct.unpack_from('<I', data)
|
||||
version = struct.unpack_from('<I', data)[0]
|
||||
expected_length = 0x00000b08
|
||||
assert version == expected_length, 'Unknown version: 0x%08x' % version
|
||||
assert len(data) == expected_length
|
||||
|
|
Loading…
Reference in a new issue