mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fix always true/false values
This commit is contained in:
parent
7a8dcb9a11
commit
072e40368e
32 changed files with 128 additions and 184 deletions
|
@ -1692,7 +1692,7 @@ Variant VisualScriptInstance::_call_internal(const StringName &p_method, void *p
|
|||
|
||||
if ((ret == output || ret & VisualScriptNodeInstance::STEP_FLAG_PUSH_STACK_BIT) && node->sequence_output_count) {
|
||||
//if no exit bit was set, and has sequence outputs, guess next node
|
||||
if (output < 0 || output >= node->sequence_output_count) {
|
||||
if (output >= node->sequence_output_count) {
|
||||
r_error.error = Variant::CallError::CALL_ERROR_INVALID_METHOD;
|
||||
error_str = RTR("Node returned an invalid sequence output: ") + itos(output);
|
||||
error = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue