Optimize table usage in methods
This commit is contained in:
@@ -184,10 +184,8 @@ namespace LuaGroup
|
||||
if (!member || !member->GetSession())
|
||||
continue;
|
||||
|
||||
++i;
|
||||
Eluna::Push(L, i);
|
||||
Eluna::Push(L, member);
|
||||
lua_settable(L, tbl);
|
||||
lua_rawseti(L, tbl, ++i);
|
||||
}
|
||||
|
||||
lua_settop(L, tbl); // push table to top of stack
|
||||
|
||||
Reference in New Issue
Block a user