summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornemerle <nemerle5@gmail.com>2018-05-16 21:28:12 +0200
committernemerle <nemerle5@gmail.com>2018-05-16 21:28:12 +0200
commitf2ba9a1f65e9f06371ebddff1607e9a0977eb3ab (patch)
tree07fd4406cbf16ef4c6e6e52846c786690dbe1efc
parente62e7fd768467aad9452cacf7331caee7f730020 (diff)
Fix bad operator check in `ShaderLanguage::_validate_assign`
-rw-r--r--servers/visual/shader_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp
index d399c548f3..f8661638c3 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 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);
}
}