aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo Lolletti2019-02-17 20:28:08 +0100
committerGitHub2019-02-17 20:28:08 +0100
commit13a57542e1371025b3b9d5a04e61be72ee225d30 (patch)
treeab6230c9d9b984b7505782d17fb9da2897d5b7d3
parent7a0dc2ef4b8c70c75ee258057539941296dbe062 (diff)
Fixed ini class
-rw-r--r--arm9/source/inihandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arm9/source/inihandler.cpp b/arm9/source/inihandler.cpp
index ec2432d..8f34390 100644
--- a/arm9/source/inihandler.cpp
+++ b/arm9/source/inihandler.cpp
@@ -85,13 +85,13 @@ void IniFile::SetValue(const std::string& field, const std::string& key, const s
}
std::string IniFile::GetValueString(const std::string & field, const std::string & key, const std::string & _default) {
- if(contents.find(key) != contents.end())
+ if(contents.find(field) != contents.end())
return contents[field].GetValString(key);
return _default;
}
int IniFile::GetValueInt(const std::string & field, const std::string & key, int _default) {
- if(contents.find(key) != contents.end())
+ if(contents.find(field) != contents.end())
return contents[field].GetValInt(key);
return _default;
}