diff options
| author | Ignacio Etcheverry | 2017-10-09 00:10:54 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-09 00:10:54 +0200 |
| commit | ff28569d16ad1558484b3029ac2fd52f7a411ffe (patch) | |
| tree | 3fed9922c8c58698f59f26fee9b5ae07eb457b3c /modules/mono/csharp_script.cpp | |
| parent | e5fcf0ee76d08dd470cc7d3ca20851584ce28abb (diff) | |
| download | godot-ff28569d16ad1558484b3029ac2fd52f7a411ffe.tar.gz godot-ff28569d16ad1558484b3029ac2fd52f7a411ffe.tar.zst godot-ff28569d16ad1558484b3029ac2fd52f7a411ffe.zip | |
Diffstat (limited to 'modules/mono/csharp_script.cpp')
| -rw-r--r-- | modules/mono/csharp_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index 7de90dfbc..fe78ce423 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -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; } |
