Changeset - r28061:5fc8f4310a15
[Not reviewed]
master
0 1 0
Peter Nelson - 13 months ago 2023-10-31 01:19:04
peter1138@openttd.org
Fix 233aac5: Set newline default comment for new groups. (#11411)

The newline space between ini groups is actually recorded as a comment of the group. This got inadvertantly dropped in #11364.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ini_load.cpp
Show inline comments
 
@@ -39,7 +39,7 @@ void IniItem::SetValue(const std::string
 
 * @param parent the file we belong to
 
 * @param name   the name of the group
 
 */
 
IniGroup::IniGroup(const std::string &name, IniGroupType type) : type(type)
 
IniGroup::IniGroup(const std::string &name, IniGroupType type) : type(type), comment("\n")
 
{
 
	this->name = StrMakeValid(name);
 
}
0 comments (0 inline, 0 general)