We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80350c5 + 117b1c3 commit 7b74eb1Copy full SHA for 7b74eb1
core/variant/dictionary.cpp
@@ -218,7 +218,7 @@ bool Dictionary::is_empty() const {
218
bool Dictionary::has(const Variant &p_key) const {
219
Variant key = p_key;
220
ERR_FAIL_COND_V(!_p->typed_key.validate(key, "use 'has'"), false);
221
- return _p->variant_map.has(p_key);
+ return _p->variant_map.has(key);
222
}
223
224
bool Dictionary::has_all(const Array &p_keys) const {
0 commit comments