mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
fix bug
This commit is contained in:
@@ -661,12 +661,6 @@ bool LuaInterface::next(int index)
|
||||
return lua_next(L, index);
|
||||
}
|
||||
|
||||
void LuaInterface::copy(int index)
|
||||
{
|
||||
assert(hasIndex(index));
|
||||
lua_pushvalue(L, index);
|
||||
}
|
||||
|
||||
void LuaInterface::getStackFunction(int level)
|
||||
{
|
||||
lua_Debug ar;
|
||||
@@ -679,6 +673,7 @@ void LuaInterface::getStackFunction(int level)
|
||||
void LuaInterface::getRef(int ref)
|
||||
{
|
||||
lua_rawgeti(L, LUA_REGISTRYINDEX, ref);
|
||||
//logTraceDebug(ref);
|
||||
}
|
||||
|
||||
void LuaInterface::getWeakRef(int weakRef)
|
||||
@@ -718,12 +713,14 @@ void LuaInterface::getMetatable(int index)
|
||||
void LuaInterface::getField(const char* key, int index)
|
||||
{
|
||||
assert(hasIndex(index));
|
||||
assert(isUserdata(index) || isTable(index));
|
||||
lua_getfield(L, index, key);
|
||||
}
|
||||
|
||||
void LuaInterface::setField(const char* key, int index)
|
||||
{
|
||||
assert(hasIndex(index));
|
||||
assert(isUserdata(index) || isTable(index));
|
||||
lua_setfield(L, index, key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user