diff options
| author | volzhs | 2016-10-31 06:20:54 +0900 |
|---|---|---|
| committer | Rémi Verschelde | 2016-10-31 00:07:56 +0100 |
| commit | d67bbd183ea03391db6dbd329605625db2d06f9a (patch) | |
| tree | 6affa362499db77bb19076e5e26d7aca0e629770 | |
| parent | 647b287a1e95a3c17467c56e525616aa94c60e3e (diff) | |
| download | godot-d67bbd183ea03391db6dbd329605625db2d06f9a.tar.gz godot-d67bbd183ea03391db6dbd329605625db2d06f9a.tar.zst godot-d67bbd183ea03391db6dbd329605625db2d06f9a.zip | |
Fix p_index out of size error when closing script
(cherry picked from commit 707185d9d8a273c1bf2a70dcba707045295427a9)
| -rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 2 |
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 21f469863..660b01992 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1665,7 +1665,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) { |
