diff options
| author | kleonc <9283098+kleonc@users.noreply.github.com> | 2021-02-14 15:26:33 +0100 |
|---|---|---|
| committer | kleonc <9283098+kleonc@users.noreply.github.com> | 2021-02-14 15:26:33 +0100 |
| commit | 7d451c0040ae1c47dad6ecd58905e77bda239e7d (patch) | |
| tree | ff5f373d7f4f91b56ac7bbcc4aa02a7c37729998 | |
| parent | cdfd3ffe15dbf6f41bdade308d69a75f3d4eb3a7 (diff) | |
VisualShader::_input_type_changed Fix index out of bounds crash.
| -rw-r--r-- | scene/resources/visual_shader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 219cd84aa0..438e130cf4 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -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]; |