Fix duplicated lines in GDScript bytecode

Fixes #26789
This commit is contained in:
Bojidar Marinov 2019-03-14 18:38:07 +02:00
parent 775e74e0d4
commit b64f9f03f8
No known key found for this signature in database
GPG key ID: 4D546A8F1E091856
3 changed files with 4 additions and 7 deletions

View file

@ -1396,11 +1396,6 @@ Error GDScriptCompiler::_parse_block(CodeGen &codegen, const GDScriptParser::Blo
case GDScriptParser::ControlFlowNode::CF_IF: {
#ifdef DEBUG_ENABLED
codegen.opcodes.push_back(GDScriptFunction::OPCODE_LINE);
codegen.opcodes.push_back(cf->line);
codegen.current_line = cf->line;
#endif
int ret2 = _parse_expression(codegen, cf->arguments[0], p_stack_level, false);
if (ret2 < 0)
return ERR_PARSE_ERROR;