mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Fix null message in assert()
This commit is contained in:
		
							parent
							
								
									2572f6800a
								
							
						
					
					
						commit
						e822182bb7
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -3427,7 +3427,10 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a | ||||||
| 					String message_str; | 					String message_str; | ||||||
| 					if (_code_ptr[ip + 2] != 0) { | 					if (_code_ptr[ip + 2] != 0) { | ||||||
| 						GET_VARIANT_PTR(message, 1); | 						GET_VARIANT_PTR(message, 1); | ||||||
| 						message_str = *message; | 						Variant message_var = *message; | ||||||
|  | 						if (message->get_type() != Variant::NIL) { | ||||||
|  | 							message_str = message_var; | ||||||
|  | 						} | ||||||
| 					} | 					} | ||||||
| 					if (message_str.is_empty()) { | 					if (message_str.is_empty()) { | ||||||
| 						err_text = "Assertion failed."; | 						err_text = "Assertion failed."; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kobewi
						kobewi