소스 검색

Merge pull request #30095 from Anutrix/arg-fix

Fixed parser treating compound assignment the same as assignment whic…
Rémi Verschelde 6 년 전
부모
커밋
65a7eba91c
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      modules/gdscript/gdscript_parser.cpp

+ 1 - 2
modules/gdscript/gdscript_parser.cpp

@@ -776,8 +776,7 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
 								}
 								_add_warning(GDScriptWarning::UNASSIGNED_VARIABLE_OP_ASSIGN, -1, identifier.operator String());
 							}
-							FALLTHROUGH;
-						}
+						} break;
 						case GDScriptTokenizer::TK_OP_ASSIGN: {
 							lv->assignments += 1;
 							lv->usages--; // Assignment is not really usage