summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-08 19:26:27 +0100
committerGitHub <noreply@github.com>2021-11-08 19:26:27 +0100
commit78ed2c05a2a9b19f72fea3e42399403363eb3f36 (patch)
tree70d9b0c72fda7a740126f7275652b49e9f9a31e9 /modules
parent665fa3d8391287204ab098062ddee8c1a524f001 (diff)
parent42cce2891f408eb223c45c2731e85e9e45967004 (diff)
Merge pull request #54118 from Pineapple/dont-ignore-type-mismatch-in-setter-master
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index e00ffff8e4..e4d3ed118c 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -1257,6 +1257,8 @@ bool GDScriptInstance::set(const StringName &p_name, const Variant &p_value) {
call(member->setter, &val, 1, err);
if (err.error == Callable::CallError::CALL_OK) {
return true; //function exists, call was successful
+ } else {
+ return false;
}
} else {
if (member->data_type.has_type) {