From ce8e259441410aba3f2345333003032ed9c45d65 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 10 Dec 2018 11:46:29 +0800 Subject: =?UTF-8?q?*=E5=88=A0=E9=99=A4shared=E7=9A=84lua=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/graphics/je_lua_ttf_data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/modules/graphics/je_lua_ttf_data.cpp') diff --git a/src/lua/modules/graphics/je_lua_ttf_data.cpp b/src/lua/modules/graphics/je_lua_ttf_data.cpp index b10b993..4a95ab2 100644 --- a/src/lua/modules/graphics/je_lua_ttf_data.cpp +++ b/src/lua/modules/graphics/je_lua_ttf_data.cpp @@ -21,9 +21,9 @@ namespace JinEngine int fontsize = luax_checkinteger(L, 2); TTFData* fontData = luaTTFData->getObject(); TTF* font = fontData->createTTF(fontsize); - Shared* shrTTF = new Shared(font, Jin_Lua_TTF); + Shared* shrTTF = new Shared(font); LuaObject* luaTTF = luax_newinstance(L, Jin_Lua_TTF, shrTTF); - luaTTF->setDependency((int)TTFDependency::DEP_TTFDATA, luaTTFData->getShared()); + luaTTF->setDependency((int)TTFDependency::DEP_TTFDATA, luaTTFData); return 1; } -- cgit v1.1-26-g67d0