diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-09 12:40:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-09 12:40:05 +0200 |
commit | 3ea33c0e455f5e52b73ae5da51d0000e8decef7b (patch) | |
tree | 674a28d2d3e4f83bd53d72e07d1ba8327c6f1c99 /modules/mono/utils/string_utils.cpp | |
parent | 80c7cb63783414daba5a5ef84085bbb3c6f1ff15 (diff) | |
parent | c55ce204b3065d55df2717a7e0bcb0681392ac34 (diff) |
Merge pull request #31221 from neikeq/err-explain-to-msg-mono
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'modules/mono'
Diffstat (limited to 'modules/mono/utils/string_utils.cpp')
-rw-r--r-- | modules/mono/utils/string_utils.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/mono/utils/string_utils.cpp b/modules/mono/utils/string_utils.cpp index 2b014c2a45..ae5a2cde81 100644 --- a/modules/mono/utils/string_utils.cpp +++ b/modules/mono/utils/string_utils.cpp @@ -55,10 +55,7 @@ int sfind(const String &p_text, int p_from) { for (int j = 0; j < src_len; j++) { int read_pos = i + j; - if (read_pos >= len) { - ERR_PRINT("read_pos >= len"); - return -1; - }; + ERR_FAIL_COND_V(read_pos >= len, -1); switch (j) { case 0: |