Skip to content

Commit 39a20ea

Browse files
committed
ensure fallback enum null case
1 parent 1ed542e commit 39a20ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

UAssetAPI/PropertyTypes/Objects/EnumPropertyData.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public override void Read(AssetBinaryReader reader, bool includeHeader, long len
4747

4848
if (reader.Asset.HasUnversionedProperties && serializationContext == PropertySerializationContext.Normal)
4949
{
50+
Value = null;
5051
if (InnerType?.Value.Value == "ByteProperty" || InnerType?.Value.Value == "UInt16Property" || InnerType?.Value.Value == "UInt32Property")
5152
{
5253
long enumIndice = 0;

0 commit comments

Comments
 (0)