diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-20 12:00:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-20 12:00:13 +0200 |
| commit | d15cf7b672ac9911b4e82fed52b4c5e8d4312b0d (patch) | |
| tree | 68ab08fafd7e14710ce245a47f3bb518ebf03307 /core/variant_call.cpp | |
| parent | 700938bff772924941c4e1ea61bbfd2abe34d8d2 (diff) | |
| parent | 6cbaf7662f5ee3ca1d02c0ebc85854fceee057af (diff) | |
| download | redot-engine-d15cf7b672ac9911b4e82fed52b4c5e8d4312b0d.tar.gz | |
Merge pull request #30576 from qarmin/lgtm_coverage
Changed some code reported by LGTM and Coverity
Diffstat (limited to 'core/variant_call.cpp')
| -rw-r--r-- | core/variant_call.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 3fdd18a630..b637e745af 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -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; |
