mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #10527 from hpvb/fix-10517
Add null check to ScriptEditor get_current_tab_control() call
This commit is contained in:
commit
dd07a15fc6
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user