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
commit7c002c14cc947b2e4623de1f0bfde7af1bb05aea (patch)
tree80534a78411ac9e5969b07beef694ddfc6701ad5 /src
parent4c56b827e5b6a89b043dee2b7148d1f25e1e20c5 (diff)
downloadopenttd-7c002c14cc947b2e4623de1f0bfde7af1bb05aea.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;