From 8d4e45c9a85175d0fc37d7d5c49ff90abb01fe4f Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 23 Nov 2018 12:24:22 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9lua=20bind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/net/je_lua_net.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/modules/net/je_lua_net.cpp') diff --git a/src/lua/modules/net/je_lua_net.cpp b/src/lua/modules/net/je_lua_net.cpp index 4b5513a..058b4e8 100644 --- a/src/lua/modules/net/je_lua_net.cpp +++ b/src/lua/modules/net/je_lua_net.cpp @@ -49,7 +49,7 @@ namespace Lua } } Socket* socket = new Socket(info); - Proxy* proxy = luax_newinstance(L, Jin_Lua_Socket, new Shared(socket, Jin_Lua_Socket)); + Proxy* proxy = luax_newinstance(L, Jin_Lua_Socket, new Shared(L, socket, Jin_Lua_Socket)); return 1; } @@ -57,7 +57,7 @@ namespace Lua { int size = luax_checkinteger(L, 1); Net::Buffer* buffer = new Net::Buffer(size); - Proxy* proxy = luax_newinstance(L, Jin_Lua_Buffer, new Shared(buffer, Jin_Lua_Buffer)); + Proxy* proxy = luax_newinstance(L, Jin_Lua_Buffer, new Shared(L, buffer, Jin_Lua_Buffer)); return 1; } -- cgit v1.1-26-g67d0