VisualShader::_input_type_changed Fix index out of bounds crash.

This commit is contained in:
kleonc 2021-02-14 15:26:33 +01:00
parent cdfd3ffe15
commit 7d451c0040

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];