Skip to content

Commit 340472d

Browse files
committed
fix: update attribute descriptor lookup from property to field
1 parent 4f5ba33 commit 340472d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Framework/Intersect.Framework.Core/GameObjects/Annotations/EditorReferenceAttribute.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public override string Format(Type stringsType, object value)
5252
else
5353
{
5454
var lookup = DescriptorType
55-
.GetProperties(BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy)
56-
.FirstOrDefault(propertyInfo => propertyInfo.PropertyType == typeof(DatabaseObjectLookup))?
57-
.GetValue(null) as DatabaseObjectLookup;
55+
.GetFields(BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy)
56+
.FirstOrDefault(fieldInfo => fieldInfo.FieldType == typeof(DatabaseObjectLookup))?
57+
.GetValue(null) as DatabaseObjectLookup;
5858

5959
if (lookup == default)
6060
{

0 commit comments

Comments
 (0)