Merge pull request #48813 from Chaosus/shader_fix_codestyle_typo

Fix typo in shader_language.cpp
This commit is contained in:
Yuri Roubinsky 2021-05-18 19:24:04 +03:00 committed by GitHub
commit 57927bd56b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3186,7 +3186,7 @@ bool ShaderLanguage::_check_node_constness(const Node *p_node) const {
switch (p_node->type) {
case Node::TYPE_OPERATOR: {
OperatorNode *op_node = (OperatorNode *)p_node;
for (int i = (1 ? op_node->op == OP_CALL : 0); i < op_node->arguments.size(); i++) {
for (int i = int(op_node->op == OP_CALL); i < op_node->arguments.size(); i++) {
if (!_check_node_constness(op_node->arguments[i])) {
return false;
}