diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-22 17:29:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 17:29:22 +0200 |
commit | 0cd98ec7e13038d09a77cf821e930be79026f943 (patch) | |
tree | 0c6fd3ba91807b5b15fdfd0e6efa98d960db6874 /modules | |
parent | 938e2e966fb92ce51656b8d50b37bebf256fb6fb (diff) | |
parent | 9a586defedd5172186ae31eb5e9e65aa35e5b27e (diff) |
Merge pull request #40600 from akien-mga/vs-duplicate-branches-warning
VisualScript: Fix -Wduplicate-branches warning
Diffstat (limited to 'modules')
-rw-r--r-- | modules/visual_script/visual_script.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index f387c0f288..1af4b46e22 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -36,8 +36,6 @@ #include "scene/main/node.h" #include "visual_script_nodes.h" -#include <stdint.h> - //used by editor, this is not really saved void VisualScriptNode::set_breakpoint(bool p_breakpoint) { breakpoint = p_breakpoint; @@ -1764,11 +1762,7 @@ Variant VisualScriptInstance::_call_internal(const StringName &p_method, void *p } next = node->sequence_outputs[output]; - if (next) { - VSDEBUG("GOT NEXT NODE - " + itos(next->get_id())); - } else { - VSDEBUG("GOT NEXT NODE - NULL"); - } + VSDEBUG("GOT NEXT NODE - " + (next ? itos(next->get_id()) : "NULL")); } if (flow_stack) { |