You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix crash when trying to save with no scenes and scripts open
This could occur when attempting to save project settings when no scenes or scripts are open (which is common in a brand new project).
This commit is contained in:
@@ -2281,8 +2281,7 @@ bool ScriptEditor::edit(const RES &p_resource, int p_line, int p_col, bool p_gra
|
||||
|
||||
void ScriptEditor::save_current_script() {
|
||||
ScriptEditorBase *current = _get_current_editor();
|
||||
|
||||
if (_test_script_times_on_disk()) {
|
||||
if (!current || _test_script_times_on_disk()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user