You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
VisualShader::_input_type_changed Fix index out of bounds crash.
This commit is contained in:
@@ -1597,6 +1597,7 @@ void VisualShader::_queue_update() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VisualShader::_input_type_changed(Type p_type, int p_id) {
|
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
|
//erase connections using this input, as type changed
|
||||||
Graph *g = &graph[p_type];
|
Graph *g = &graph[p_type];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user