From bfa38b51663d59cfaec7aa469565c09a4ec05275 Mon Sep 17 00:00:00 2001 From: Vinzenz Feenstra Date: Wed, 26 Feb 2014 15:47:22 +0100 Subject: [PATCH] Fix string version of begins_with Signed-off-by: Vinzenz Feenstra --- core/ustring.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/ustring.cpp b/core/ustring.cpp index b0f06c6ab6..2384ce5bd6 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -2491,19 +2491,21 @@ bool String::begins_with(const String& p_string) const { const CharType *src=&p_string[0]; const CharType *str=&operator[](0); - for (int i=0;i