diff options
-rw-r--r-- | lib/LuaFTGL.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/LuaFTGL.cc b/lib/LuaFTGL.cc index 851ccb3..a5b2a8d 100644 --- a/lib/LuaFTGL.cc +++ b/lib/LuaFTGL.cc @@ -213,7 +213,9 @@ int sLua_EncapFTFont::EncapFTFont_proceed(Lua * L, int n, EncapFTFont * obj, int f->Render(L->tostring(2).to_charp()); break; case FTFONT_ERROR: - r = 0; + r = 1; + L->push((lua_Number) f->Error()); + break; } return r; |