diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-16 20:16:35 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-16 20:16:35 +0200 |
commit | fa268be823b97095245f731ad59335a935e6b0ba (patch) | |
tree | 04cb01166a16f2340a9ea0e1e526bdc90dbfa141 | |
parent | 1d22e040cb5a521dacf8d47fa0638b8f2bf439a3 (diff) | |
parent | 41890ff9c3028d3b05d993f8f7ec42c346824304 (diff) | |
download | redot-engine-fa268be823b97095245f731ad59335a935e6b0ba.tar.gz |
Merge pull request #78345 from groud/fix_gcc13_compilation
Fix compilation on gcc13
-rw-r--r-- | editor/editor_inspector.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 3f6db778c5..e3514b4691 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -3690,8 +3690,9 @@ void EditorInspector::_edit_set(const String &p_name, const Variant &p_value, bo Variant v_undo_redo = undo_redo; Variant v_object = object; Variant v_name = p_name; - for (int i = 0; i < EditorNode::get_singleton()->get_editor_data().get_undo_redo_inspector_hook_callback().size(); i++) { - const Callable &callback = EditorNode::get_singleton()->get_editor_data().get_undo_redo_inspector_hook_callback()[i]; + const Vector<Callable> &callbacks = EditorNode::get_singleton()->get_editor_data().get_undo_redo_inspector_hook_callback(); + for (int i = 0; i < callbacks.size(); i++) { + const Callable &callback = callbacks[i]; const Variant *p_arguments[] = { &v_undo_redo, &v_object, &v_name, &p_value }; Variant return_value; |