Skip to content

Commit 69d3c46

Browse files
committed
god c# inference is stupid
1 parent c138a76 commit 69d3c46

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

UndertaleModLib/Models/UndertaleGeneralInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public struct IDEVersion: UndertaleObject
224224
/// </summary>
225225
public BranchType Branch;
226226

227-
public IDEVersion(uint major, uint minor, uint release, uint build, BranchType branch = BranchType.Pre2022_0)
227+
public IDEVersion(uint major, uint minor = 0, uint release = 0, uint build = 0, BranchType branch = BranchType.Pre2022_0)
228228
{
229229
Major = major;
230230
Minor = minor;
@@ -563,7 +563,7 @@ public void Unserialize(UndertaleReader reader)
563563
byte[] guidData = reader.ReadBytes(16);
564564
DirectPlayGuid = new Guid(guidData);
565565
Name = reader.ReadUndertaleString();
566-
Version = reader.ReadUndertaleObject();
566+
Version = reader.ReadUndertaleObject<IDEVersion>();
567567

568568
if (reader.ReadOnlyGEN8)
569569
return;

0 commit comments

Comments
 (0)