From 7cd9e0061d82b2172287917c1fba9b46462c1011 Mon Sep 17 00:00:00 2001 From: LongerWarrior Date: Sun, 15 Dec 2024 15:45:52 +0200 Subject: [PATCH] Fiixng EX_transformConst --- UAssetAPI/Kismet/Bytecode/Expressions/EX_TransformConst.cs | 2 +- UAssetAPI/Unversioned/Usmap.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UAssetAPI/Kismet/Bytecode/Expressions/EX_TransformConst.cs b/UAssetAPI/Kismet/Bytecode/Expressions/EX_TransformConst.cs index dac4547f..1c0622a3 100644 --- a/UAssetAPI/Kismet/Bytecode/Expressions/EX_TransformConst.cs +++ b/UAssetAPI/Kismet/Bytecode/Expressions/EX_TransformConst.cs @@ -12,7 +12,7 @@ public class EX_TransformConst : KismetExpression /// public override EExprToken Token { get { return EExprToken.EX_TransformConst; } } - public EX_TransformConst() { } + public EX_TransformConst() { Value = new(); } /// /// Reads out the expression from a BinaryReader. diff --git a/UAssetAPI/Unversioned/Usmap.cs b/UAssetAPI/Unversioned/Usmap.cs index f5959445..371e5f73 100644 --- a/UAssetAPI/Unversioned/Usmap.cs +++ b/UAssetAPI/Unversioned/Usmap.cs @@ -415,7 +415,7 @@ private static UsmapPropertyData ConvertFPropertyToUsmapPropertyData(StructExpor else if (enumIndex.IsImport()) { string enumName = enumIndex.ToImport(exp.Asset).ObjectName?.Value.Value; - if (enumName == null || !exp.Asset.Mappings.EnumMap.TryGetValue(enumName, out UsmapEnum value)) + if (string.IsNullOrEmpty(enumName) || !exp.Asset.Mappings.EnumMap.TryGetValue(enumName, out UsmapEnum value)) { if (!exp.Asset.HasUnversionedProperties) { @@ -449,7 +449,7 @@ private static UsmapPropertyData ConvertFPropertyToUsmapPropertyData(StructExpor else if (enumIndex.IsImport()) { string enumName = enumIndex.ToImport(exp.Asset).ObjectName?.Value.Value; - if (enumName == null || !exp.Asset.Mappings.EnumMap.TryGetValue(enumName, out UsmapEnum value)) + if (string.IsNullOrEmpty(enumName) || !exp.Asset.Mappings.EnumMap.TryGetValue(enumName, out UsmapEnum value)) { if (!exp.Asset.HasUnversionedProperties) {