mirror of
https://github.com/godotengine/godot
synced 2024-09-05 10:18:51 +00:00
Merge pull request #11550 from marcelofg55/get_named_ret
Fix Variant::get_named return when p_index is invalid
This commit is contained in:
commit
41701ed044
|
@ -1699,6 +1699,7 @@ Variant Variant::get_named(const StringName &p_index, bool *r_valid) const {
|
|||
if (r_valid) {
|
||||
*r_valid = false;
|
||||
}
|
||||
return Variant();
|
||||
}
|
||||
|
||||
#define DEFAULT_OP_ARRAY_CMD(m_name, m_type, skip_test, cmd) \
|
||||
|
|
Loading…
Reference in a new issue