Various cleanups and fixes due to feedback

This commit is contained in:
leak committed 2014-06-22 16:29:49 +02:00
1 parent ca3327dbed
commit bfcbde1c97
5 files changed
+11 -14

No files matched your search

+5 -5
View File
@@ -35,13 +35,13 @@ bool ConfigMgr::LoadInitial(char const* file)
try
{
ptree temp;
boost::property_tree::ini_parser::read_ini(file, temp);
ptree fullTree;
boost::property_tree::ini_parser::read_ini(file, fullTree);
for (auto bla : temp)
// Since we're using only one section per config file, we skip the section and have direct property access
for (auto section : fullTree)
{
_config = bla.second;
_config = section.second;
break;
}
}