Fixed IntPtr unboxing (#11949)
- Fix boolean never reset to false - Fix IntPtr unboxing and cleanup
This commit is contained in:
parent
e5fcf0ee76
commit
ff28569d16
5 changed files with 31 additions and 53 deletions
|
|
@ -782,7 +782,7 @@ bool CSharpInstance::set(const StringName &p_name, const Variant &p_value) {
|
|||
if (method) {
|
||||
MonoObject *ret = method->invoke(mono_object, args);
|
||||
|
||||
if (ret && UNBOX_BOOLEAN(ret))
|
||||
if (ret && GDMonoMarshal::unbox<MonoBoolean>(ret) == true)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue