summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-06-16 09:26:49 +0200
committerGitHub <noreply@github.com>2020-06-16 09:26:49 +0200
commit6cefb8d36847e5535f5070e7c3f6763190769941 (patch)
tree5cc812ad9f38cc4ee6fbc9289e7bf04fa38b07c6 /modules/gdscript/gdscript_parser.cpp
parentdf0779acfdeebb03ade5edc3d643a7822845ecb4 (diff)
parentfc89c5c76d9148f2b3a6789f015087ed3811413c (diff)
downloadredot-engine-6cefb8d36847e5535f5070e7c3f6763190769941.tar.gz
Merge pull request #39314 from ThakeeNathees/debugger-incorrect-line-fix
GDScript debugger stepping to incorrect line fix
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index a06ecb1ea8..d2867cb77a 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();