Core/Config: Fix 3 more missing config warnings

Closes #16861

Thanks tkrokli

(cherry picked from commit 0afcefea2724081968b07119ebd54943fdc44b60)
This commit is contained in:
DDuarte authored and Aokromes committed 2016-05-12 08:24:45 +02:00
1 parent 06a91b090d
commit 477a4edfe2
2 files changed
+11 -4

No files matched your search

+1 -1
View File
@@ -121,7 +121,7 @@ bool ConfigMgr::GetBoolDefault(std::string const& name, bool def) const
{
std::string val = GetValueDefault(name, std::string(def ? "1" : "0"));
val.erase(std::remove(val.begin(), val.end(), '"'), val.end());
return (val == "true" || val == "TRUE" || val == "yes" || val == "YES" || val == "1");
return (val == "1" || val == "true" || val == "TRUE" || val == "yes" || val == "YES");
}
int ConfigMgr::GetIntDefault(std::string const& name, int def) const