diff --git a/Assets/Cryville/Common/Pdt/PdtInterpreter.cs b/Assets/Cryville/Common/Pdt/PdtInterpreter.cs index 1d02d10..ad50048 100644 --- a/Assets/Cryville/Common/Pdt/PdtInterpreter.cs +++ b/Assets/Cryville/Common/Pdt/PdtInterpreter.cs @@ -226,6 +226,10 @@ namespace Cryville.Common.Pdt { while (true) { try { ws(); } catch (IndexOutOfRangeException) { return result; } + if (cc == '}') { + GetChar(); + return result; + } object pkey = InterpretKey(type); char c = GetChar(); switch (c) { @@ -288,8 +292,6 @@ namespace Cryville.Common.Pdt { } } break; - case '}': - return result; default: throw new InvalidOperationException("Internal error: Invalid key interpretation"); } diff --git a/Assets/Cryville/Crtr/SkinInterpreter.cs b/Assets/Cryville/Crtr/SkinInterpreter.cs index 090bd3c..606842d 100644 --- a/Assets/Cryville/Crtr/SkinInterpreter.cs +++ b/Assets/Cryville/Crtr/SkinInterpreter.cs @@ -85,7 +85,7 @@ namespace Cryville.Crtr { case '{': return new SkinSelectors(s, a); case '}': - return null; + throw new FormatException("Invalid token"); case '*': GetChar(); compKeyFlag = true;