Fix compilation on gcc13

(cherry picked from commit 41890ff9c3)
This commit is contained in:
Gilles Roudière 2023-06-16 19:24:04 +02:00 committed by Rémi Verschelde
parent 3d94d7436a
commit 3196113206
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 2 deletions

View File

@ -3645,8 +3645,9 @@ void EditorInspector::_edit_set(const String &p_name, const Variant &p_value, bo
Variant v_undo_redo = undo_redo; Variant v_undo_redo = undo_redo;
Variant v_object = object; Variant v_object = object;
Variant v_name = p_name; 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 Vector<Callable> &callbacks = EditorNode::get_singleton()->get_editor_data().get_undo_redo_inspector_hook_callback();
const Callable &callback = EditorNode::get_singleton()->get_editor_data().get_undo_redo_inspector_hook_callback()[i]; 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 }; const Variant *p_arguments[] = { &v_undo_redo, &v_object, &v_name, &p_value };
Variant return_value; Variant return_value;