VisualShader::_input_type_changed Fix index out of bounds crash.
(cherry picked from commit 7d451c0040
)
This commit is contained in:
parent
34eea26c67
commit
31744577b3
1 changed files with 1 additions and 0 deletions
|
@ -1446,6 +1446,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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue