diff --git a/core/ustring.cpp b/core/ustring.cpp index 336d8eea0a7..b0f06c6ab67 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -2518,7 +2518,7 @@ bool String::begins_with(const char* p_string) const { } - return true; + return *p_string == 0; }