summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorAlexander Baldeck <alexander@archlinux.org>2004-12-31 08:34:55 +0000
committerAlexander Baldeck <alexander@archlinux.org>2004-12-31 08:34:55 +0000
commite170c3e3105352e71344cc2c04f61701ad4959f4 (patch)
treed42a64b171cf9bfb711f2fa1338157ede64ca518 /src/configuration.cpp
parent62161ab3531cc33699e6c5f990acc3e1a099a786 (diff)
downloadmana-client-e170c3e3105352e71344cc2c04f61701ad4959f4.tar.gz
mana-client-e170c3e3105352e71344cc2c04f61701ad4959f4.tar.bz2
mana-client-e170c3e3105352e71344cc2c04f61701ad4959f4.tar.xz
mana-client-e170c3e3105352e71344cc2c04f61701ad4959f4.zip
- fixed bad bug in Configuration that always treated values as numeric
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 5fb1e752..8f4ebbc8 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -83,7 +83,7 @@ bool Configuration::write(std::string filename) {
out.write(iter->first.c_str(), iter->first.length());
out.write("=", 1);
- if(optionTmp.numericValue == 0) {
+ if(iter->second.numericValue == 0) {
out.write(iter->second.stringValue.c_str(), iter->second.stringValue.length());
}else{
sprintf(tmp, "%f", iter->second.numericValue);