1
0
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:
Ignacio Etcheverry
2017-10-09 00:10:54 +02:00
committed by GitHub
parent e5fcf0ee76
commit ff28569d16
5 changed files with 31 additions and 53 deletions

View File

@@ -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;
}