Fix VisualScript editor crash when deleting selected nodes

Fixes #64662.
Regression from #61145.
This commit is contained in:
Rémi Verschelde 2022-08-23 10:38:36 +02:00
parent cdced052f0
commit 13d1ee6058

View file

@ -1888,7 +1888,7 @@ void VisualScriptEditor::_on_nodes_delete(const Array &p_nodes) {
} }
} }
} else { } 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()); to_erase.push_back(p_nodes[i].operator String().to_int());
} }
} }