Font::create could return incorrect value type

This commit is contained in:
Noel Berry 2022-02-12 12:30:05 -08:00
parent 99595f265f
commit f1e45b129c

View File

@ -49,7 +49,7 @@ FontRef Font::create(Stream& stream)
if (stbtt_InitFont(fn, buffer.data(), 0) == 0)
{
Log::error("Unable to parse Font file");
return false;
return FontRef();
}
// setup