Speed up compilation time for luafunctions

* Other compile fixes for gcc
This commit is contained in:
Eduardo Bart
2013-01-29 14:35:20 -02:00
parent 8d6ccb8d83
commit 80a7ecb3a4
8 changed files with 29 additions and 22 deletions

View File

@@ -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);
}