summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-29 21:06:49 +0000
committerrubidium <rubidium@openttd.org>2008-08-29 21:06:49 +0000
commit509b77371f6e2f091d020936d02c0fb747457f5e (patch)
tree80534a78411ac9e5969b07beef694ddfc6701ad5 /src
parent50d230a52f9827f43e58c61e2cafd880ceb29d19 (diff)
downloadopenttd-509b77371f6e2f091d020936d02c0fb747457f5e.tar.xz
(svn r14185) -Fix (r14153): removing NewGRFs from the config file was impossible.
Diffstat (limited to 'src')
-rw-r--r--src/settings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index a396d8734..0d8b564af 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -1715,6 +1715,7 @@ static void SaveVersionInConfig(IniFile *ini)
/* Save a GRF configuration to the given group name */
static void GRFSaveConfig(IniFile *ini, const char *grpname, const GRFConfig *list)
{
+ ini->RemoveGroup(grpname);
IniGroup *group = ini->GetGroup(grpname);
const GRFConfig *c;