mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 03:04:31 +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
|
|
@ -232,7 +232,7 @@ struct GDScriptUtilityFunctionsDefinitions {
|
|||
|
||||
static inline void load(Variant *r_ret, const Variant **p_args, int p_arg_count, Callable::CallError &r_error) {
|
||||
VALIDATE_ARG_COUNT(1);
|
||||
if (p_args[0]->get_type() != Variant::STRING) {
|
||||
if (!p_args[0]->is_string()) {
|
||||
r_error.error = Callable::CallError::CALL_ERROR_INVALID_ARGUMENT;
|
||||
r_error.argument = 0;
|
||||
r_error.expected = Variant::STRING;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue