From 773900d749e86e2a958d90c2cf25f1b9b85993a1 Mon Sep 17 00:00:00 2001 From: Sinai Date: Sat, 29 May 2021 14:50:21 +1000 Subject: [PATCH] Fix CacheProperty not resetting Exception state when it has arguments --- src/UI/CacheObject/CacheProperty.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/UI/CacheObject/CacheProperty.cs b/src/UI/CacheObject/CacheProperty.cs index 6dfdeee..688f88d 100644 --- a/src/UI/CacheObject/CacheProperty.cs +++ b/src/UI/CacheObject/CacheProperty.cs @@ -28,10 +28,11 @@ namespace UnityExplorer.UI.CacheObject { try { + object ret; if (HasArguments) - return PropertyInfo.GetValue(DeclaringInstance, this.Evaluator.TryParseArguments()); - - var ret = PropertyInfo.GetValue(DeclaringInstance, null); + ret = PropertyInfo.GetValue(DeclaringInstance, this.Evaluator.TryParseArguments()); + else + ret = PropertyInfo.GetValue(DeclaringInstance, null); HadException = false; LastException = null; return ret;