forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -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. */
|
||||
|
Reference in New Issue
Block a user