Skip to content

Commit

Permalink
Fix VisualScript editor crash when deleting selected nodes
Browse files Browse the repository at this point in the history
Fixes #64662.
Regression from #61145.
  • Loading branch information
akien-mga committed Aug 23, 2022
1 parent cdced05 commit 13d1ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/visual_script/visual_script_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,7 @@ void VisualScriptEditor::_on_nodes_delete(const Array &p_nodes) {
}
}
} else {
for (int i = 0; i < graph->get_child_count(); i++) {
for (int i = 0; i < p_nodes.size(); i++) {
to_erase.push_back(p_nodes[i].operator String().to_int());
}
}
Expand Down

0 comments on commit 13d1ee6

Please sign in to comment.