diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2010-11-10 06:10:43 +0000 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2010-11-10 06:10:43 +0000 |
| commit | 6ece147568bdea67929a85444d052fef2099bcf5 (patch) | |
| tree | ca3ebb626902ade1fa8a12ab1815a2468b2f606d /Source/Core/Common/Src/StringUtil.cpp | |
| parent | 895f1500a5c6c455753ec66fc0d007c6abae9289 (diff) | |
StringUtil fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6370 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/StringUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
