cleanup: use LuaThreadVariable

This commit is contained in:
Chris Danford
2008-02-15 10:08:58 +00:00
parent d007bbcbaa
commit 11e182166d
-6
View File
@@ -104,10 +104,6 @@ void ScreenSelectMaster::Init()
GameCommand& mc = m_aGameCommands[c];
LuaThreadVariable var( "GameCommand", LuaReference::Create(&mc) );
Lua *L = LUA->Get();
mc.PushSelf( L );
lua_setglobal( L, "ThisGameCommand" );
LUA->Release( L );
// init icon
if( SHOW_ICON )
@@ -146,8 +142,6 @@ void ScreenSelectMaster::Init()
}
}
LUA->UnsetGlobal( "ThisGameCommand" );
}
// init scroll