Skip to content

Commit

Permalink
Merge pull request godotengine#48813 from Chaosus/shader_fix_codestyl…
Browse files Browse the repository at this point in the history
…e_typo

Fix typo in shader_language.cpp
  • Loading branch information
Chaosus authored May 18, 2021
2 parents 2076580 + 96b2e54 commit 57927bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/shader_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 57927bd

Please sign in to comment.