Skip to content

Commit

Permalink
zzre: Fix exception in ECSExplorer related to subscript operators
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Mar 5, 2024
1 parent 7651566 commit 50b4263
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zzre/tools/ECSExplorer/ECSExplorer.EntityContentRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 50b4263

Please sign in to comment.