Ver código fonte

Fix p_index out of size error when closing script

volzhs 8 anos atrás
pai
commit
707185d9d8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      tools/editor/plugins/script_editor_plugin.cpp

+ 1 - 1
tools/editor/plugins/script_editor_plugin.cpp

@@ -945,7 +945,7 @@ void ScriptEditor::_menu_option(int p_option) {
 		}
 		}
 	}
 	}
 
 
-	EditorHelp *help = tab_container->get_child(selected)->cast_to<EditorHelp>();
+	EditorHelp *help = tab_container->get_current_tab_control()->cast_to<EditorHelp>();
 	if (help) {
 	if (help) {
 
 
 		switch(p_option) {
 		switch(p_option) {