From 50b4263f1dfc14dc966802ef4fefbe4db0f0b305 Mon Sep 17 00:00:00 2001 From: Helco Date: Tue, 5 Mar 2024 20:41:59 +0100 Subject: [PATCH] zzre: Fix exception in ECSExplorer related to subscript operators --- zzre/tools/ECSExplorer/ECSExplorer.EntityContentRenderer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zzre/tools/ECSExplorer/ECSExplorer.EntityContentRenderer.cs b/zzre/tools/ECSExplorer/ECSExplorer.EntityContentRenderer.cs index 563829c2..24c93f23 100644 --- a/zzre/tools/ECSExplorer/ECSExplorer.EntityContentRenderer.cs +++ b/zzre/tools/ECSExplorer/ECSExplorer.EntityContentRenderer.cs @@ -140,7 +140,10 @@ void NameColumn() if (!TreeNodeEx(name, default)) return; foreach (var prop in properties) - GenericField(prop.Name, prop.GetValue(value)); + { + if (prop.GetMethod?.GetParameters().Length == 0) + GenericField(prop.Name, prop.GetValue(value)); + } foreach (var subField in fields) GenericField(subField.Name, subField.GetValue(value)); }