diff options
author | Thakee Nathees <thakeenathees@gmail.com> | 2020-06-05 12:15:37 +0530 |
---|---|---|
committer | Thakee Nathees <thakeenathees@gmail.com> | 2020-06-05 12:15:37 +0530 |
commit | fc89c5c76d9148f2b3a6789f015087ed3811413c (patch) | |
tree | 698ebb0c334ad03802d6d557a02e82b531766f2b | |
parent | 2aa46ee4ae252b9cd13e6c8e4ace8a68ee14398b (diff) |
Debugger stepping to incorrect line fix
Fix: #39296
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 0e498f6895..9592dde7d8 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<NewLineNode>(); nl->line = tokenizer->get_token_line(); |