You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Add null check to ScriptEditor get_current_tab_control() call
This fixes #10517
This commit is contained in:
@@ -2072,7 +2072,10 @@ void ScriptEditor::_update_selected_editor_menu() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorHelp *eh = tab_container->get_current_tab_control()->cast_to<EditorHelp>();
|
EditorHelp *eh = NULL;
|
||||||
|
if (tab_container->get_current_tab_control())
|
||||||
|
eh = tab_container->get_current_tab_control()->cast_to<EditorHelp>();
|
||||||
|
|
||||||
if (eh) {
|
if (eh) {
|
||||||
script_search_menu->show();
|
script_search_menu->show();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user