diff --git a/Source/Render/Text/FontCache.cpp b/Source/Render/Text/FontCache.cpp index ccb4284c0..fc4eef41c 100644 --- a/Source/Render/Text/FontCache.cpp +++ b/Source/Render/Text/FontCache.cpp @@ -256,7 +256,8 @@ HFONT FontCache::Get(int family, int height, unsigned charset, unsigned char bol return entry.font; } -#pragma inline_depth(0) +extern template bool std::_Traits_equal>(const char*, std::size_t, const char*, std::size_t) noexcept; + // OFFSET: 0x0054F830 // FUNCTION: fn_01959 int FallbackFontIndex(const std::string& name) { @@ -268,9 +269,8 @@ int FallbackFontIndex(const std::string& name) { } } - return entry == std::end(fallback) ? 0 : static_cast(entry - std::begin(fallback)); + return entry != std::end(fallback) ? static_cast(entry - std::begin(fallback)) : 0; } -#pragma inline_depth() // OFFSET: 0x0054F8A0 // FUNCTION: fn_01960