diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp index 33b4a73897..0f3fefec7e 100644 --- a/Source/Core/Common/Src/StringUtil.cpp +++ b/Source/Core/Common/Src/StringUtil.cpp @@ -154,9 +154,9 @@ bool TryParse(const std::string &str, u32 *const output) bool TryParse(const std::string &str, bool *const output) { - if ('1' == str[0] || !strcasecmp("true", str.c_str())) + if ("1" == str || !strcasecmp("true", str.c_str())) *output = true; - else if ('0' == str[0] || !strcasecmp("false", str.c_str())) + else if ("0" == str || !strcasecmp("false", str.c_str())) *output = false; else return false;