summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormarynate <mary.w.nate@gmail.com>2014-05-12 18:45:04 +0800
committermarynate <mary.w.nate@gmail.com>2014-05-13 01:19:41 +0800
commit56d9faebab57000c8c82fb631dbf187c55604664 (patch)
tree1d8ae3ec9383339f8c38e99891e67d247e733d8a /core
parent1b45a38fb531f448caf515d9423683c136ad4545 (diff)
Make String::right count from pos instead of pos+1
Diffstat (limited to 'core')
-rw-r--r--core/ustring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp
index d119e341c3..188818bc2a 100644
--- a/core/ustring.cpp
+++ b/core/ustring.cpp
@@ -2640,7 +2640,7 @@ String String::right(int p_pos) const {
if (p_pos<0)
return "";
- return substr(p_pos+1,(length()-p_pos)-1);
+ return substr(p_pos,(length()-p_pos));
}
CharType String::ord_at(int p_idx) const {