From eaf8fa75a1c76131ecbf2585db6d6236b7334b8e Mon Sep 17 00:00:00 2001 From: Treeston Date: Wed, 2 Sep 2020 22:01:51 +0200 Subject: Core/Misc: Add support for custom link colors. Clean-up hyperlink validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs. --- src/common/Utilities/Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/Utilities/Util.cpp') diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp index 511153200b0..b6066e9505b 100644 --- a/src/common/Utilities/Util.cpp +++ b/src/common/Utilities/Util.cpp @@ -657,7 +657,7 @@ bool StringEqualI(std::string_view str1, std::string_view str2) bool StringStartsWith(std::string_view haystack, std::string_view needle) { - return (haystack.rfind(needle, 0) == 0); + return (haystack.substr(0, needle.length()) == needle); } bool StringContainsStringI(std::string_view haystack, std::string_view needle) -- cgit v1.2.3