Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sinai-dev committed Aug 7, 2020
1 parent c177c12 commit 6c6f06f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified Release/CppExplorer.dll
Binary file not shown.
5 changes: 4 additions & 1 deletion src/Menu/Inspectors/ReflectionWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ public void SetValue(object obj)
}
}

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
{
Expand Down

0 comments on commit 6c6f06f

Please sign in to comment.