diff options
-rw-r--r-- | tools/editor/editor_node.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 05df0a3e48..f7ad05d05a 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -4651,8 +4651,7 @@ void EditorNode::_layout_menu_option(int p_id) { return; //no config } - int idx=editor_layouts->get_item_index(p_id); - _load_docks_from_config(config, editor_layouts->get_item_text(idx)); + _load_docks_from_config(config, editor_layouts->get_item_text(p_id)); _save_docks(); } |