Fix Variant::get_named return when p_index is invalid
This commit is contained in:
parent
cebcba9022
commit
57d438eb7a
@ -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 New Issue
Block a user