summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-26 08:37:38 +0200
committerGitHub <noreply@github.com>2021-07-26 08:37:38 +0200
commit9a480d3b1b117927c28f0497c068efb4bc15fc32 (patch)
tree4ddfea00edd6aa9d9bd10faf7a8a523acd332f2c /core
parent54f6b30bd43022dced9656c16043790d7d10ad7e (diff)
parentaa61c00b0e6c1186f5c36d106e2822fa340179cc (diff)
Merge pull request #50854 from SirQuartz/patch-31
Fix dead code in `gdnative_interface.cpp`
Diffstat (limited to 'core')
-rw-r--r--core/extension/gdnative_interface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/extension/gdnative_interface.cpp b/core/extension/gdnative_interface.cpp
index 8f68b8d848..88fff342ee 100644
--- a/core/extension/gdnative_interface.cpp
+++ b/core/extension/gdnative_interface.cpp
@@ -281,8 +281,9 @@ static GDNativeBool gdnative_variant_has_key(const GDNativeVariantPtr p_self, co
const Variant *self = (const Variant *)p_self;
const Variant *key = (const Variant *)p_key;
bool valid;
- return self->has_key(*key, valid);
+ bool ret = self->has_key(*key, valid);
*r_valid = valid;
+ return ret;
}
static void gdnative_variant_get_type_name(GDNativeVariantType p_type, GDNativeStringPtr r_ret) {