1
0
Fork 0

Merge pull request #6989 from volzhs/out-of-size

Fix p_index out of size error when closing script
This commit is contained in:
Rémi Verschelde 2016-10-30 22:46:23 +01:00 committed by GitHub
commit 1fde6f25cd
1 changed files with 1 additions and 1 deletions

View File

@ -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) {