summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-03 14:46:44 +0200
committerGitHub <noreply@github.com>2019-05-03 14:46:44 +0200
commit7e4cb80d4c1aca0aa4707977d77ed1058f4803ca (patch)
tree86d4291e32457f5f3bc3d844502fa78b524867be /modules/mono
parent913620a9b804b10a880f6274df1d8ef44c27cb54 (diff)
parentcdf54d6c5fcaf20088cc334a9973cdd435041bc3 (diff)
Merge pull request #27594 from marxin/fix-duplicate-conditions
Fix duplicated conditions.
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/utils/string_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/utils/string_utils.cpp b/modules/mono/utils/string_utils.cpp
index 1fdddd3925..0a7470f866 100644
--- a/modules/mono/utils/string_utils.cpp
+++ b/modules/mono/utils/string_utils.cpp
@@ -66,7 +66,7 @@ int sfind(const String &p_text, int p_from) {
break;
case 1: {
CharType c = src[read_pos];
- found = src[read_pos] == 's' || (c >= '0' || c <= '4');
+ found = src[read_pos] == 's' || (c >= '0' && c <= '4');
break;
}
default: