mirror of
https://github.com/edubart/otclient.git
synced 2026-01-18 03:16:22 +01:00
Speed up compilation time for luafunctions
* Other compile fixes for gcc
This commit is contained in:
@@ -901,8 +901,7 @@ void LuaInterface::getEnv(int index)
|
||||
void LuaInterface::setEnv(int index)
|
||||
{
|
||||
assert(hasIndex(index));
|
||||
int ret;
|
||||
ret = lua_setfenv(L, index);
|
||||
lua_setfenv(L, index);
|
||||
assert(ret == 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user