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
1 changed files with 1 additions and 0 deletions
|
@ -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