From a859643f7e9c9e61bc489158dc9fd2df2e8f1fbc Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 26 Jun 2019 22:43:08 +0530 Subject: [PATCH] Fixed parser treating compound assignment the same as assignment which gave wrong argument usage count --- modules/gdscript/gdscript_parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index ec3e72eef7d..e4d606fceb0 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