浏览代码

Merge pull request #39314 from ThakeeNathees/debugger-incorrect-line-fix

GDScript debugger stepping to incorrect line fix
Rémi Verschelde 5 年之前
父节点
当前提交
6cefb8d368
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      modules/gdscript/gdscript_parser.cpp

+ 2 - 0
modules/gdscript/gdscript_parser.cpp

@@ -2821,6 +2821,8 @@ void GDScriptParser::_parse_block(BlockNode *p_block, bool p_static) {
 
 #ifdef DEBUG_ENABLED
 
+	pending_newline = -1; // reset for the new block
+
 	NewLineNode *nl = alloc_node<NewLineNode>();
 
 	nl->line = tokenizer->get_token_line();