diff options
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); |