diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-12-31 08:34:55 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-12-31 08:34:55 +0000 |
commit | e170c3e3105352e71344cc2c04f61701ad4959f4 (patch) | |
tree | d42a64b171cf9bfb711f2fa1338157ede64ca518 /src/configuration.cpp | |
parent | 62161ab3531cc33699e6c5f990acc3e1a099a786 (diff) | |
download | mana-e170c3e3105352e71344cc2c04f61701ad4959f4.tar.gz mana-e170c3e3105352e71344cc2c04f61701ad4959f4.tar.bz2 mana-e170c3e3105352e71344cc2c04f61701ad4959f4.tar.xz mana-e170c3e3105352e71344cc2c04f61701ad4959f4.zip |
- fixed bad bug in Configuration that always treated values as numeric
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 2 |
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); |