mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix Variant::get_named return when p_index is invalid
This commit is contained in:
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user