diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-27 01:03:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-27 01:03:21 +0200 |
commit | 65a7eba91ce8976bdb5e509a2211744f2023b9c8 (patch) | |
tree | e4d219ee084cbc881f23447636894205db2cfbaa /modules | |
parent | caf8e20f2ab2861c627f2347f12909ba847974fa (diff) | |
parent | a859643f7e9c9e61bc489158dc9fd2df2e8f1fbc (diff) |
Merge pull request #30095 from Anutrix/arg-fix
Fixed parser treating compound assignment the same as assignment whic…
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index ec3e72eef7..e4d606fceb 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/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 |