You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix always true/false values
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user