mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Fix expected argument count in Callable call error text
This commit is contained in:
		
							parent
							
								
									1b4b8934e0
								
							
						
					
					
						commit
						7a871212ed
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -3659,9 +3659,9 @@ String Variant::get_call_error_text(Object *p_base, const StringName &p_method, | |||
| 			err_text = "Cannot convert argument " + itos(errorarg + 1) + " from [missing argptr, type unknown] to " + Variant::get_type_name(Variant::Type(ce.expected)); | ||||
| 		} | ||||
| 	} else if (ce.error == Callable::CallError::CALL_ERROR_TOO_MANY_ARGUMENTS) { | ||||
| 		err_text = "Method expected " + itos(ce.argument) + " arguments, but called with " + itos(p_argcount); | ||||
| 		err_text = "Method expected " + itos(ce.expected) + " arguments, but called with " + itos(p_argcount); | ||||
| 	} else if (ce.error == Callable::CallError::CALL_ERROR_TOO_FEW_ARGUMENTS) { | ||||
| 		err_text = "Method expected " + itos(ce.argument) + " arguments, but called with " + itos(p_argcount); | ||||
| 		err_text = "Method expected " + itos(ce.expected) + " arguments, but called with " + itos(p_argcount); | ||||
| 	} else if (ce.error == Callable::CallError::CALL_ERROR_INVALID_METHOD) { | ||||
| 		err_text = "Method not found"; | ||||
| 	} else if (ce.error == Callable::CallError::CALL_ERROR_INSTANCE_IS_NULL) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kleonc
						kleonc