From bfe77cd699ba3eb1b233c7aea98494e30a89d3ce Mon Sep 17 00:00:00 2001 From: colinator27 <17358554+colinator27@users.noreply.github.com> Date: Tue, 9 Jul 2024 21:59:38 -0400 Subject: [PATCH] Allow match macro inner types to be null again --- .../Decompiler/GameSpecific/Json/MatchMacroTypeConverter.cs | 2 +- .../Decompiler/GameSpecific/Json/NotMatchMacroTypeConverter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Underanalyzer/Decompiler/GameSpecific/Json/MatchMacroTypeConverter.cs b/Underanalyzer/Decompiler/GameSpecific/Json/MatchMacroTypeConverter.cs index adcd8a0..397433c 100644 --- a/Underanalyzer/Decompiler/GameSpecific/Json/MatchMacroTypeConverter.cs +++ b/Underanalyzer/Decompiler/GameSpecific/Json/MatchMacroTypeConverter.cs @@ -24,7 +24,7 @@ public static MatchMacroType ReadContents(ref Utf8JsonReader reader, IMacroTypeC { throw new JsonException(); } - return new MatchMacroType(innerType ?? throw new JsonException(), conditionalType, conditionalValue); + return new MatchMacroType(innerType, conditionalType, conditionalValue); } if (reader.TokenType != JsonTokenType.PropertyName) diff --git a/Underanalyzer/Decompiler/GameSpecific/Json/NotMatchMacroTypeConverter.cs b/Underanalyzer/Decompiler/GameSpecific/Json/NotMatchMacroTypeConverter.cs index 2d75a0c..000cf8a 100644 --- a/Underanalyzer/Decompiler/GameSpecific/Json/NotMatchMacroTypeConverter.cs +++ b/Underanalyzer/Decompiler/GameSpecific/Json/NotMatchMacroTypeConverter.cs @@ -24,7 +24,7 @@ public static MatchNotMacroType ReadContents(ref Utf8JsonReader reader, IMacroTy { throw new JsonException(); } - return new MatchNotMacroType(innerType ?? throw new JsonException(), conditionalType, conditionalValue); + return new MatchNotMacroType(innerType, conditionalType, conditionalValue); } if (reader.TokenType != JsonTokenType.PropertyName)