mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Unify String and StringName
This commit is contained in:
@@ -50,8 +50,7 @@ int RegExMatch::_find(const Variant &p_name) const {
|
||||
return -1;
|
||||
}
|
||||
return i;
|
||||
|
||||
} else if (p_name.get_type() == Variant::STRING) {
|
||||
} else if (p_name.get_type() == Variant::STRING || p_name.get_type() == Variant::STRING_NAME) {
|
||||
HashMap<String, int>::ConstIterator found = names.find((String)p_name);
|
||||
if (found) {
|
||||
return found->value;
|
||||
|
||||
Reference in New Issue
Block a user