missed: simplify

This commit is contained in:
Glenn Maynard
2006-10-05 20:04:14 +00:00
parent 47a1ab39bd
commit 6431aee91c
+1 -5
View File
@@ -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