diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index d399c548f3b..f8661638c32 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -2300,7 +2300,7 @@ bool ShaderLanguage::_validate_assign(Node *p_node, const Maptype == Node::TYPE_OPERATOR) { OperatorNode *op = static_cast(p_node); - if (op->type == OP_INDEX) { + if (op->op == OP_INDEX) { return _validate_assign(op->arguments[0], p_builtin_types); } }