Skip to content

Commit

Permalink
Merge pull request godotengine#40600 from akien-mga/vs-duplicate-bran…
Browse files Browse the repository at this point in the history
…ches-warning

VisualScript: Fix -Wduplicate-branches warning
  • Loading branch information
akien-mga authored Jul 22, 2020
2 parents 938e2e9 + 9a586de commit 0cd98ec
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions modules/visual_script/visual_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0cd98ec

Please sign in to comment.