summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
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 {