diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-11-24 10:12:56 -0600 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-11-24 10:32:07 -0600 |
commit | e81c689592bd493aa2ff67b8e9d2d9107572647a (patch) | |
tree | 11ce05a4559d6b75908339e296c01e01bb33b701 /core/io | |
parent | 3e3300637e216b35a93b5ecc8364e383ac898e73 (diff) |
Project feature warning system
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/config_file.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp index 49fa73dab2..33f992e153 100644 --- a/core/io/config_file.cpp +++ b/core/io/config_file.cpp @@ -183,7 +183,9 @@ Error ConfigFile::_internal_save(FileAccess *file) { if (E != values.front()) { file->store_string("\n"); } - file->store_string("[" + E.key() + "]\n\n"); + if (E.key() != "") { + file->store_string("[" + E.key() + "]\n\n"); + } for (OrderedHashMap<String, Variant>::Element F = E.get().front(); F; F = F.next()) { String vstr; |