Skip to content

Commit 83d736c

Browse files
authored
SerializedFile - hotfix version parsing for custom versions
1 parent 664e9b5 commit 83d736c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎UnityPy/files/SerializedFile.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def set_version(self, string_version):
328328
build_type = re.findall(r"([^\d.])", string_version)
329329
self.build_type = BuildType(build_type[0] if build_type else "")
330330
version_split = re.split(r"\D", string_version)
331-
self.version = tuple(int(x) for x in version_split)
331+
self.version = tuple(int(x) for x in version_split[:4])
332332

333333
def read_type_tree(self):
334334
type_tree = []

0 commit comments

Comments
 (0)