summaryrefslogtreecommitdiffstats
path: root/lib/inifile
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-10 16:23:22 +0100
committermadmaxoft <github@xoft.cz>2014-01-10 16:23:22 +0100
commit4c360b54e3c3f8dcecf11adff9ffd5c2eaef0024 (patch)
treecb5c6462a109e34c4397fe1c2e43880b880966d7 /lib/inifile
parentBiomeVisualiser: Added zooming using the 1 - 8 keys. (diff)
downloadcuberite-4c360b54e3c3f8dcecf11adff9ffd5c2eaef0024.tar
cuberite-4c360b54e3c3f8dcecf11adff9ffd5c2eaef0024.tar.gz
cuberite-4c360b54e3c3f8dcecf11adff9ffd5c2eaef0024.tar.bz2
cuberite-4c360b54e3c3f8dcecf11adff9ffd5c2eaef0024.tar.lz
cuberite-4c360b54e3c3f8dcecf11adff9ffd5c2eaef0024.tar.xz
cuberite-4c360b54e3c3f8dcecf11adff9ffd5c2eaef0024.tar.zst
cuberite-4c360b54e3c3f8dcecf11adff9ffd5c2eaef0024.zip
Diffstat (limited to 'lib/inifile')
-rw-r--r--lib/inifile/iniFile.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/inifile/iniFile.cpp b/lib/inifile/iniFile.cpp
index da523e783..5ca6f6618 100644
--- a/lib/inifile/iniFile.cpp
+++ b/lib/inifile/iniFile.cpp
@@ -384,15 +384,7 @@ bool cIniFile::SetValue(const AString & keyname, const AString & valuename, cons
}
else
{
- if (!create)
- {
- keys[keyID].values[valueID] = value;
- }
- else
- {
- keys[keyID].names.resize(keys[keyID].names.size() + 1, valuename);
- keys[keyID].values.resize(keys[keyID].values.size() + 1, value);
- }
+ keys[keyID].values[valueID] = value;
}
return true;