Merge pull request #50854 from SirQuartz/patch-31

Fix dead code in `gdnative_interface.cpp`
This commit is contained in:
Rémi Verschelde 2021-07-26 08:37:38 +02:00 committed by GitHub
commit 9a480d3b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -281,8 +281,9 @@ static GDNativeBool gdnative_variant_has_key(const GDNativeVariantPtr p_self, co
const Variant *self = (const Variant *)p_self; const Variant *self = (const Variant *)p_self;
const Variant *key = (const Variant *)p_key; const Variant *key = (const Variant *)p_key;
bool valid; bool valid;
return self->has_key(*key, valid); bool ret = self->has_key(*key, valid);
*r_valid = valid; *r_valid = valid;
return ret;
} }
static void gdnative_variant_get_type_name(GDNativeVariantType p_type, GDNativeStringPtr r_ret) { static void gdnative_variant_get_type_name(GDNativeVariantType p_type, GDNativeStringPtr r_ret) {