diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-09-29 19:19:46 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-09-29 20:00:10 +0300 |
commit | aff767ef0787db47890a4e33d567b25c4b8ec060 (patch) | |
tree | 703ba12b49d3aea46e883991b5157d400047039a /editor/editor_undo_redo_manager.cpp | |
parent | 19890614c6a78ec36030ce65c7da05f07fcdb9ed (diff) | |
download | redot-engine-aff767ef0787db47890a4e33d567b25c4b8ec060.tar.gz |
Fix expected argument count for `Callable` call errors
Diffstat (limited to 'editor/editor_undo_redo_manager.cpp')
-rw-r--r-- | editor/editor_undo_redo_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_undo_redo_manager.cpp b/editor/editor_undo_redo_manager.cpp index 2b059352a7..5b064c9ae3 100644 --- a/editor/editor_undo_redo_manager.cpp +++ b/editor/editor_undo_redo_manager.cpp @@ -156,7 +156,7 @@ void EditorUndoRedoManager::add_undo_methodp(Object *p_object, const StringName void EditorUndoRedoManager::_add_do_method(const Variant **p_args, int p_argcount, Callable::CallError &r_error) { if (p_argcount < 2) { r_error.error = Callable::CallError::CALL_ERROR_TOO_FEW_ARGUMENTS; - r_error.argument = 0; + r_error.expected = 2; return; } @@ -185,7 +185,7 @@ void EditorUndoRedoManager::_add_do_method(const Variant **p_args, int p_argcoun void EditorUndoRedoManager::_add_undo_method(const Variant **p_args, int p_argcount, Callable::CallError &r_error) { if (p_argcount < 2) { r_error.error = Callable::CallError::CALL_ERROR_TOO_FEW_ARGUMENTS; - r_error.argument = 0; + r_error.expected = 2; return; } |