You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fix many errors found by PVS-Studio
Fix errors 2, 3, 4, 6, 8, 9, 11, 12, 13, 14, and 15.
This commit is contained in:
@@ -180,7 +180,7 @@ static String dump_node_code(SL::Node *p_node, int p_level) {
|
||||
|
||||
String scode = dump_node_code(bnode->statements[i], p_level);
|
||||
|
||||
if (bnode->statements[i]->type == SL::Node::TYPE_CONTROL_FLOW || bnode->statements[i]->type == SL::Node::TYPE_CONTROL_FLOW) {
|
||||
if (bnode->statements[i]->type == SL::Node::TYPE_CONTROL_FLOW) {
|
||||
code += scode; //use directly
|
||||
} else {
|
||||
code += _mktab(p_level) + scode + ";\n";
|
||||
|
||||
Reference in New Issue
Block a user