mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
Fix p_index out of size error when closing script
(cherry picked from commit 707185d9d8
)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user