mirror of
https://github.com/NoelFB/blah.git
synced 2025-07-10 21:35:27 +08:00
Font::create could return incorrect value type
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user