diff --git a/Release/CppExplorer.dll b/Release/CppExplorer.dll index b7620f6..fe47590 100644 Binary files a/Release/CppExplorer.dll and b/Release/CppExplorer.dll differ diff --git a/src/Menu/Inspectors/ReflectionWindow.cs b/src/Menu/Inspectors/ReflectionWindow.cs index 3a8bbff..1b3a31e 100644 --- a/src/Menu/Inspectors/ReflectionWindow.cs +++ b/src/Menu/Inspectors/ReflectionWindow.cs @@ -444,7 +444,10 @@ namespace Explorer } } - propInfo.SetValue(propInfo.GetAccessors()[0].IsStatic ? null : obj, m_value, null); + var declaring = propInfo.DeclaringType; + var cast = CppExplorer.Il2CppCast(obj, declaring); + + propInfo.SetValue(propInfo.GetAccessors()[0].IsStatic ? null : cast, m_value, null); } catch {