From f2ba9a1f65e9f06371ebddff1607e9a0977eb3ab Mon Sep 17 00:00:00 2001 From: nemerle Date: Wed, 16 May 2018 21:28:12 +0200 Subject: [PATCH] Fix bad operator check in `ShaderLanguage::_validate_assign` --- servers/visual/shader_language.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }