1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Fix bad operator check in ShaderLanguage::_validate_assign

This commit is contained in:
nemerle
2018-05-16 21:28:12 +02:00
parent e62e7fd768
commit f2ba9a1f65

View File

@@ -2300,7 +2300,7 @@ bool ShaderLanguage::_validate_assign(Node *p_node, const Map<StringName, BuiltI
if (p_node->type == Node::TYPE_OPERATOR) { if (p_node->type == Node::TYPE_OPERATOR) {
OperatorNode *op = static_cast<OperatorNode *>(p_node); 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); return _validate_assign(op->arguments[0], p_builtin_types);
} }
} }