corrected bug in wiLua

This commit is contained in:
turanszkij
2015-12-26 13:59:24 +01:00
parent 6b028a6c05
commit b41a76dd1b
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -185,9 +185,13 @@ void wiLua::RegisterLibrary(const string& tableName, const luaL_Reg* functions)
//table is not yet present
lua_pushvalue(m_luaState, -1);
lua_setfield(m_luaState, -2, "__index"); // Object.__index = Object
UNLOCK();
AddFuncArray(functions);
}
UNLOCK();
else
{
UNLOCK();
}
}
bool wiLua::RegisterObject(const string& tableName, const string& name, void* object)
{
+1 -1
View File
@@ -7,7 +7,7 @@ namespace wiVersion
// minor features, major bug fixes
const int minor = 2;
// minor bug fixes, alterations
const int revision = 0;
const int revision = 1;
long GetVersion()