You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fixed IntPtr unboxing (#11949)
- Fix boolean never reset to false - Fix IntPtr unboxing and cleanup
This commit is contained in:
committed by
GitHub
parent
e5fcf0ee76
commit
ff28569d16
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user