From 5d02d81ba1240d8ab6026320f1b9b3f0e0add064 Mon Sep 17 00:00:00 2001 From: Not Officer Date: Sun, 21 Feb 2021 02:38:22 +0100 Subject: [PATCH] minor fixes --- FModel/PakReader/Parsers/Objects/FPerPlatformFloat.cs | 3 ++- FModel/PakReader/Parsers/Objects/FPerPlatformInt.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/FModel/PakReader/Parsers/Objects/FPerPlatformFloat.cs b/FModel/PakReader/Parsers/Objects/FPerPlatformFloat.cs index bb19cb93..f84cd4d6 100644 --- a/FModel/PakReader/Parsers/Objects/FPerPlatformFloat.cs +++ b/FModel/PakReader/Parsers/Objects/FPerPlatformFloat.cs @@ -2,11 +2,12 @@ { public readonly struct FPerPlatformFloat : IUStruct { + public readonly bool bCooked; public readonly float Default; internal FPerPlatformFloat(PackageReader reader) { - _ = reader.ReadByte() != 0; //bCooked + bCooked = reader.ReadInt32() != 0; Default = reader.ReadFloat(); } } diff --git a/FModel/PakReader/Parsers/Objects/FPerPlatformInt.cs b/FModel/PakReader/Parsers/Objects/FPerPlatformInt.cs index 3c54d4f6..51f3dbf0 100644 --- a/FModel/PakReader/Parsers/Objects/FPerPlatformInt.cs +++ b/FModel/PakReader/Parsers/Objects/FPerPlatformInt.cs @@ -2,11 +2,12 @@ { public readonly struct FPerPlatformInt : IUStruct { + public readonly bool bCooked; public readonly int Default; internal FPerPlatformInt(PackageReader reader) { - _ = reader.ReadByte() != 0; //bCooked + bCooked = reader.ReadInt32() != 0; Default = reader.ReadInt32(); } }