diff options
author | leak <leak@bitmx.net> | 2014-06-22 16:29:49 +0200 |
---|---|---|
committer | leak <leak@bitmx.net> | 2014-06-22 16:29:49 +0200 |
commit | bfcbde1c97971211d2ecdf5c5f8033eb138658d1 (patch) | |
tree | 9d32b87a6d4ef9164faaeaf3eeb730cc368c1fe1 /src/server/shared/Configuration/Config.cpp | |
parent | ca3327dbed76d7d13b9e2754990b717267700be9 (diff) |
Various cleanups and fixes due to feedback
Diffstat (limited to 'src/server/shared/Configuration/Config.cpp')
-rw-r--r-- | src/server/shared/Configuration/Config.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/shared/Configuration/Config.cpp b/src/server/shared/Configuration/Config.cpp index 95336457428..9e0e57eb198 100644 --- a/src/server/shared/Configuration/Config.cpp +++ b/src/server/shared/Configuration/Config.cpp @@ -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; } } |