Skip to content

Commit

Permalink
SerializedFile - hotfix version parsing for custom versions
Browse files Browse the repository at this point in the history
  • Loading branch information
K0lb3 authored Dec 21, 2023
1 parent 664e9b5 commit 83d736c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnityPy/files/SerializedFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def set_version(self, string_version):
build_type = re.findall(r"([^\d.])", string_version)
self.build_type = BuildType(build_type[0] if build_type else "")
version_split = re.split(r"\D", string_version)
self.version = tuple(int(x) for x in version_split)
self.version = tuple(int(x) for x in version_split[:4])

def read_type_tree(self):
type_tree = []
Expand Down

0 comments on commit 83d736c

Please sign in to comment.