Skip to content

Commit

Permalink
Tpk - UnityVersion - set default values for fromList
Browse files Browse the repository at this point in the history
  • Loading branch information
K0lb3 authored Dec 21, 2023
1 parent 83d736c commit 46e05c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnityPy/helpers/Tpk.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def fromString(version: str) -> UnityVersion:
return UnityVersion(version.split("."))

@staticmethod
def fromList(major: int, minor: int, patch: int, build: int) -> UnityVersion:
def fromList(major: int = 0, minor: int = 0, patch: int = 0, build: int = 0) -> UnityVersion:
return UnityVersion(major << 48 | minor << 32 | patch << 16 | build)

@property
Expand Down

0 comments on commit 46e05c5

Please sign in to comment.