mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Fix assignment with operator on type member
This commit is contained in:
		
							parent
							
								
									0a001afec5
								
							
						
					
					
						commit
						9bc5119d4e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -951,7 +951,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code | |||
| 
 | ||||
| 				// Perform operator if any.
 | ||||
| 				if (assignment->operation != GDScriptParser::AssignmentNode::OP_NONE) { | ||||
| 					GDScriptCodeGenerator::Address value = codegen.add_temporary(); | ||||
| 					GDScriptCodeGenerator::Address value = codegen.add_temporary(_gdtype_from_datatype(subscript->get_datatype())); | ||||
| 					if (subscript->is_attribute) { | ||||
| 						gen->write_get_named(value, name, prev_base); | ||||
| 					} else { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Julien Nguyen
						Julien Nguyen