Debugger stepping to incorrect line fix

Fix: #39296
(cherry picked from commit fc89c5c76d)
This commit is contained in:
Thakee Nathees 2020-06-05 12:15:37 +05:30 committed by Rémi Verschelde
parent d46ab53b41
commit fc92f83c30

View file

@ -2755,6 +2755,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();