Merge pull request #18942 from nemerle/fix_shader_validate_assign

Fix bad operator check in `ShaderLanguage::_validate_assign`
This commit is contained in:
Rémi Verschelde 2018-05-16 22:01:42 +02:00 committed by GitHub
commit 2665707c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}