diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-12-21 14:20:35 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-12-21 14:22:17 -0300 |
commit | 37f558cd7b2308f6442f74c5265f12425d9887c8 (patch) | |
tree | 88901b350f7674013f7aecf8fddf3f1c3dbd7399 /core | |
parent | 72b844c34999d8615450798ed1f27ef24a72d8ce (diff) |
Some BRDF fixes
Diffstat (limited to 'core')
-rw-r--r-- | core/ustring.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 2e907381f7..abda1f1a34 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -612,6 +612,8 @@ String String::get_slicec(CharType p_splitter, int p_slice) const { if (p_slice==count) { return substr(prev,i-prev); + } else if (c[i]==0) { + return String(); } else { count++; prev=i+1; |