summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-10-30 22:46:23 +0100
committerGitHub <noreply@github.com>2016-10-30 22:46:23 +0100
commit1fde6f25cd34a5264d7a4114b546389fafc21b27 (patch)
treee6bb4315fc5a9b67553067fcc68e2133ed465abe
parentac8febdd97d10dc042fe7529bf2a8c64c9386ec6 (diff)
parent707185d9d8a273c1bf2a70dcba707045295427a9 (diff)
Merge pull request #6989 from volzhs/out-of-size
Fix p_index out of size error when closing script
-rw-r--r--tools/editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp
index b6ce3e89eb..e7170a23f3 100644
--- a/tools/editor/plugins/script_editor_plugin.cpp
+++ b/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) {
switch(p_option) {