Merge pull request #46021 from kleonc/visualshader_index_check

VisualShader::_input_type_changed Fix index out of bounds crash.
This commit is contained in:
Rémi Verschelde 2021-02-14 17:34:24 +01:00 committed by GitHub
commit 4302b506d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1597,6 +1597,7 @@ void VisualShader::_queue_update() {
}
void VisualShader::_input_type_changed(Type p_type, int p_id) {
ERR_FAIL_INDEX(p_type, TYPE_MAX);
//erase connections using this input, as type changed
Graph *g = &graph[p_type];