mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-28 16:58:57 +08:00
Font::create could return incorrect value type
This commit is contained in:
parent
99595f265f
commit
f1e45b129c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user