mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Fix duplicated lines in GDScript bytecode
Fixes #26789
(cherry picked from commit b64f9f03f8)
			
			
This commit is contained in:
		
							parent
							
								
									a51b2b8a82
								
							
						
					
					
						commit
						0d8492cf9e
					
				
					 3 changed files with 4 additions and 7 deletions
				
			
		|  | @ -2741,6 +2741,8 @@ void GDScriptParser::_parse_block(BlockNode *p_block, bool p_static) { | |||
| 			} break; | ||||
| 			case GDScriptTokenizer::TK_NEWLINE: { | ||||
| 
 | ||||
| 				int line = tokenizer->get_token_line(); | ||||
| 
 | ||||
| 				if (!_parse_newline()) { | ||||
| 					if (!error_set) { | ||||
| 						p_block->end_line = tokenizer->get_token_line(); | ||||
|  | @ -2750,7 +2752,7 @@ void GDScriptParser::_parse_block(BlockNode *p_block, bool p_static) { | |||
| 				} | ||||
| 
 | ||||
| 				NewLineNode *nl2 = alloc_node<NewLineNode>(); | ||||
| 				nl2->line = tokenizer->get_token_line(); | ||||
| 				nl2->line = line; | ||||
| 				p_block->statements.push_back(nl2); | ||||
| 
 | ||||
| 			} break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Bojidar Marinov
						Bojidar Marinov