diff options
author | peter1138 <peter1138@openttd.org> | 2009-01-14 20:23:45 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-01-14 20:23:45 +0000 |
commit | c4c32692dfd65d6535e98e7d9660f4403059553c (patch) | |
tree | cdf9f0d4d99c9240cbc6d417f5fd088ede12fd29 /src/ini_type.h | |
parent | 61093eb2115bf22ca7e417af4e9048f60d2b47af (diff) | |
download | openttd-c4c32692dfd65d6535e98e7d9660f4403059553c.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.h | 5 |
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. */ |