mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Config: Fix 3 more missing config warnings
Closes #16861 Thanks tkrokli
This commit is contained in:
@@ -122,7 +122,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
|
||||
|
||||
Reference in New Issue
Block a user