diff --git a/core/ustring.cpp b/core/ustring.cpp index 061a5c5f9c9..4d41d6e225f 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -256,13 +256,10 @@ bool String::operator==(const StrRange &p_range) const { return true; const CharType *c_str=p_range.c_str; - - int l=length(); - - const CharType *dst = p_range.c_str; + const CharType *dst = &operator[](0); /* Compare char by char */ - for (int i=0;i