Merge pull request #64772 from akien-mga/3.x-fix-vs-delete-crash

Fix VisualScript editor crash when deleting selected nodes
This commit is contained in:
Rémi Verschelde 2022-08-24 09:52:46 +02:00 committed by GitHub
commit ecc32f8b3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());
}
}