Skip to content

Commit

Permalink
GH-43 Fix AppleClang ambiguity issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Dec 30, 2023
1 parent b1dec6c commit 0624dce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/script/nodes/functions/function_terminator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ bool OScriptNodeFunctionTerminator::_get(const StringName& p_name, Variant& r_va
else if (p_name.match("argument_count"))
{
Ref<OScriptFunction> function = get_function();
r_value = function.is_valid() ? function->get_argument_count() : size_t(0);
if (function.is_valid())
r_value = function->get_argument_count();
else
r_value = 0;
return true;
}
else if (p_name.begins_with("argument_"))
Expand Down
5 changes: 4 additions & 1 deletion src/script/nodes/signals/emit_signal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ bool OScriptNodeEmitSignal::_get(const StringName& p_name, Variant& r_value) con
}
else if (p_name.match("argument_count"))
{
r_value = _signal.is_valid() ? _signal->get_argument_count() : size_t(0);
if (_signal.is_valid())
r_value = _signal->get_argument_count();
else
r_value = 0;
return true;
}
else if (p_name.begins_with("argument_"))
Expand Down

0 comments on commit 0624dce

Please sign in to comment.