summaryrefslogtreecommitdiffstats
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-07-20 08:09:57 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-07-20 08:09:57 +0200
commit6cbaf7662f5ee3ca1d02c0ebc85854fceee057af (patch)
tree9c6c688f72d0a6e2e79879be73e15adeb328d1b1 /core/variant_call.cpp
parent584ca0f156cec64c259382895e105cf27566a987 (diff)
downloadredot-engine-6cbaf7662f5ee3ca1d02c0ebc85854fceee057af.tar.gz
Changed some code showed in LGTM and Coverage
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r--core/variant_call.cpp2
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;