missed: simplify

This commit is contained in:
Glenn Maynard
2006-10-05 20:04:14 +00:00
parent 47a1ab39bd
commit 6431aee91c
+5 -9
View File
@@ -307,17 +307,13 @@ 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 );
if( name ) if( name )
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.