mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
StringName Dictionary keys
also added 'is_string()' method to Variant and refactored many String type comparisons to use it instead
This commit is contained in:
parent
40b378e9e2
commit
154049ce17
34 changed files with 65 additions and 82 deletions
|
|
@ -97,7 +97,7 @@ bool JavaClass::_call_method(JavaObject *p_instance, const StringName &p_method,
|
|||
}
|
||||
} break;
|
||||
case ARG_TYPE_STRING: {
|
||||
if (p_args[i]->get_type() != Variant::STRING) {
|
||||
if (!p_args[i]->is_string()) {
|
||||
arg_expected = Variant::STRING;
|
||||
}
|
||||
} break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue