You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Changed some code showed in LGTM and Coverage
This commit is contained in:
@@ -70,7 +70,7 @@ struct _VariantCall {
|
||||
|
||||
for (int i = 0; i < arg_count; i++) {
|
||||
|
||||
if (!tptr[i] || tptr[i] == p_args[i]->type)
|
||||
if (tptr[i] == Variant::NIL || tptr[i] == p_args[i]->type)
|
||||
continue; // all good
|
||||
if (!Variant::can_convert(p_args[i]->type, tptr[i])) {
|
||||
r_error.error = Variant::CallError::CALL_ERROR_INVALID_ARGUMENT;
|
||||
|
||||
Reference in New Issue
Block a user