diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-07-07 23:08:51 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-07-07 23:08:51 +0200 |
commit | 9a77d748c0d4e1c3dceb40216b9a345073032361 (patch) | |
tree | 3fef755e93df1df19207982deca39610d92c950f /core | |
parent | d897131ac555de84afe9ca6845abf87c26957895 (diff) |
Fixes minor issues found by static analyzer
Diffstat (limited to 'core')
-rw-r--r-- | core/ustring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 21ac304a1b..706e8a3cc1 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -778,7 +778,7 @@ Vector<String> String::split(const String &p_splitter, bool p_allow_empty, int p if (p_allow_empty || (end > from)) { if (p_maxsplit <= 0) ret.push_back(substr(from, end - from)); - else if (p_maxsplit > 0) { + else { // Put rest of the string and leave cycle. if (p_maxsplit == ret.size()) { |