1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

fix entry not found errors bug on bools

This commit is contained in:
Oliver Hahn 2019-05-23 23:18:05 +02:00
parent c27ecb6215
commit de08a882d1

View file

@ -343,7 +343,7 @@ inline bool ConfigFile::GetValueSafe<bool>(std::string const &strSection,
bool defaultValue) const {
std::string r1;
try {
r1 = GetValue<std::string>(strSection, strEntry);
r1 = GetValueBasic<std::string>(strSection, strEntry);
if (r1 == "true" || r1 == "yes" || r1 == "on" || r1 == "1")
return true;
if (r1 == "false" || r1 == "no" || r1 == "off" || r1 == "0")