Debugger stepping to incorrect line fix

Fix: #39296
This commit is contained in:
Thakee Nathees 2020-06-05 12:15:37 +05:30
parent 2aa46ee4ae
commit fc89c5c76d
1 changed files with 2 additions and 0 deletions

View File

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