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:
parent
c27ecb6215
commit
de08a882d1
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ inline bool ConfigFile::GetValueSafe<bool>(std::string const &strSection,
|
||||||
bool defaultValue) const {
|
bool defaultValue) const {
|
||||||
std::string r1;
|
std::string r1;
|
||||||
try {
|
try {
|
||||||
r1 = GetValue<std::string>(strSection, strEntry);
|
r1 = GetValueBasic<std::string>(strSection, strEntry);
|
||||||
if (r1 == "true" || r1 == "yes" || r1 == "on" || r1 == "1")
|
if (r1 == "true" || r1 == "yes" || r1 == "on" || r1 == "1")
|
||||||
return true;
|
return true;
|
||||||
if (r1 == "false" || r1 == "no" || r1 == "off" || r1 == "0")
|
if (r1 == "false" || r1 == "no" || r1 == "off" || r1 == "0")
|
||||||
|
|
Loading…
Reference in a new issue