summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-03-01 02:01:35 +0100
committerGitHub <noreply@github.com>2022-03-01 02:01:35 +0100
commita09814e4f86861948615fcd83139de6ed9a34434 (patch)
tree628ec799868cf3af2066aedf2f47d99c905d3968 /editor/plugins
parentfeee9d0aa5a85a1efd9d86b1ace5edc8cbea6c22 (diff)
parentf653107764917303a18a8f2d70481b871d7d7b0e (diff)
Merge pull request #58644 from KoBeWi/❗
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index bd4064708b..30c2b12519 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -762,7 +762,7 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) {
if (p_save && file.is_valid()) {
// Do not try to save internal scripts, but prompt to save in-memory
// scripts which are not saved to disk yet (have empty path).
- if (file->is_built_in()) {
+ if (!file->is_built_in()) {
save_current_script();
}
}