diff options
Diffstat (limited to 'src/lua/modules/graphics/je_lua_ttf.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_ttf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/modules/graphics/je_lua_ttf.cpp b/src/lua/modules/graphics/je_lua_ttf.cpp index 4c56ae1..3e6050b 100644 --- a/src/lua/modules/graphics/je_lua_ttf.cpp +++ b/src/lua/modules/graphics/je_lua_ttf.cpp @@ -45,7 +45,7 @@ namespace JinEngine Text* text = p2->getObject<Text>(); page = ttf->typeset(*text, lineheight, spacing); } - Proxy* proxy = (Proxy*)luax_newinstance(L, JIN_GRAPHICS_PAGE, sizeof(Proxy)); + Proxy* proxy = luax_newinstance(L, JIN_GRAPHICS_PAGE); Shared<Page>* refPage = new Shared<Page>(page, JIN_GRAPHICS_PAGE); { /* retain related ttf */ |