summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-02 21:30:01 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-02 21:30:01 +0000
commitd98bd419b419be1d5069c0fe77fa2a7b6379e45f (patch)
tree95a443b753c6657a0237837aa5d76eebb4a2f835 /src/configuration.cpp
parent43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0 (diff)
downloadmana-d98bd419b419be1d5069c0fe77fa2a7b6379e45f.tar.gz
mana-d98bd419b419be1d5069c0fe77fa2a7b6379e45f.tar.bz2
mana-d98bd419b419be1d5069c0fe77fa2a7b6379e45f.tar.xz
mana-d98bd419b419be1d5069c0fe77fa2a7b6379e45f.zip
Work around Guichan focussing bug.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index dbf44baf..b73e9427 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -145,7 +145,7 @@ std::string Configuration::getValue(const std::string &key, std::string deflt)
{
std::map<std::string, std::string>::iterator iter = options.find(key);
if (iter != options.end()) {
- return options[key];
+ return (*iter).second;
}
return deflt;
}
@@ -154,7 +154,7 @@ float Configuration::getValue(const std::string &key, float deflt)
{
std::map<std::string, std::string>::iterator iter = options.find(key);
if (iter != options.end()) {
- return atof(options[key].c_str());
+ return atof((*iter).second.c_str());
}
return deflt;
}