summaryrefslogtreecommitdiff
path: root/src/ini_type.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-01-14 20:23:45 +0000
committerpeter1138 <peter1138@openttd.org>2009-01-14 20:23:45 +0000
commit7d70f0cd14f55ecc0a273d206aa054165edaf6b9 (patch)
treecdf9f0d4d99c9240cbc6d417f5fd088ede12fd29 /src/ini_type.h
parent3cd6bf0ead727d93e1b7850b8a11511603d9c092 (diff)
downloadopenttd-7d70f0cd14f55ecc0a273d206aa054165edaf6b9.tar.xz
(svn r15085) -Fix (r14164): Clearing a settings group did not delete old items nor reset the last_item pointer, causing lists to not be saved unless they started blank.
Diffstat (limited to 'src/ini_type.h')
-rw-r--r--src/ini_type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ini_type.h b/src/ini_type.h
index 7bbc2ca20..eade53fd5 100644
--- a/src/ini_type.h
+++ b/src/ini_type.h
@@ -64,6 +64,11 @@ struct IniGroup {
* @return the requested item or NULL if not found.
*/
IniItem *GetItem(const char *name, bool create);
+
+ /**
+ * Clear all items in the group
+ */
+ void Clear();
};
/** The complete ini file. */