missed: simplify
This commit is contained in:
@@ -307,9 +307,7 @@ XNode *LuaManager::GetLuaInformation() const
|
|||||||
lua_pop( L, 1 ); // pop name
|
lua_pop( L, 1 ); // pop name
|
||||||
|
|
||||||
// Get base class.
|
// Get base class.
|
||||||
if( luaL_getmetafield( L, -1, "__index" ) )
|
if( luaL_getmetafield( L, -1, "base" ) )
|
||||||
{
|
|
||||||
if( luaL_getmetafield(L, -1, "class") )
|
|
||||||
{
|
{
|
||||||
name = lua_tostring( L, -1 );
|
name = lua_tostring( L, -1 );
|
||||||
|
|
||||||
@@ -317,8 +315,6 @@ XNode *LuaManager::GetLuaInformation() const
|
|||||||
c.m_sBaseName = name;
|
c.m_sBaseName = name;
|
||||||
lua_pop( L, 1 ); // pop name
|
lua_pop( L, 1 ); // pop name
|
||||||
}
|
}
|
||||||
lua_pop( L, 1 ); // pop base class
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get methods.
|
// Get methods.
|
||||||
lua_pushnil( L ); // initial key
|
lua_pushnil( L ); // initial key
|
||||||
|
|||||||
Reference in New Issue
Block a user