From fc89c5c76d9148f2b3a6789f015087ed3811413c Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Fri, 5 Jun 2020 12:15:37 +0530 Subject: [PATCH] Debugger stepping to incorrect line fix Fix: #39296 --- modules/gdscript/gdscript_parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 0e498f6895b..9592dde7d8e 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/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(); nl->line = tokenizer->get_token_line();