Merge pull request #18942 from nemerle/fix_shader_validate_assign
Fix bad operator check in `ShaderLanguage::_validate_assign`
This commit is contained in:
commit
2665707c18
|
@ -2300,7 +2300,7 @@ bool ShaderLanguage::_validate_assign(Node *p_node, const Map<StringName, BuiltI
|
|||
if (p_node->type == Node::TYPE_OPERATOR) {
|
||||
|
||||
OperatorNode *op = static_cast<OperatorNode *>(p_node);
|
||||
if (op->type == OP_INDEX) {
|
||||
if (op->op == OP_INDEX) {
|
||||
return _validate_assign(op->arguments[0], p_builtin_types);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue