diff --git a/core/ustring.cpp b/core/ustring.cpp index 7f80f436e..10b32b091 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -1313,7 +1313,7 @@ bool String::begins_with(const char *p_string) const { int i = 0; while (*p_string && i < l) { - if (*p_string != str[i]) { + if (*p_string != (CharType)str[i]) { return false; } i++;