Skip to content

Commit

Permalink
Fiixng EX_transformConst
Browse files Browse the repository at this point in the history
  • Loading branch information
LongerWarrior committed Dec 15, 2024
1 parent e28d709 commit 7cd9e00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion UAssetAPI/Kismet/Bytecode/Expressions/EX_TransformConst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class EX_TransformConst : KismetExpression<FTransform>
/// </summary>
public override EExprToken Token { get { return EExprToken.EX_TransformConst; } }

public EX_TransformConst() { }
public EX_TransformConst() { Value = new(); }

/// <summary>
/// Reads out the expression from a BinaryReader.
Expand Down
4 changes: 2 additions & 2 deletions UAssetAPI/Unversioned/Usmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 7cd9e00

Please sign in to comment.