don't leave globals around

This commit is contained in:
Glenn Maynard
2006-09-25 06:52:04 +00:00
parent 4d41a8de08
commit db3c0458d8
+2 -2
View File
@@ -300,7 +300,7 @@ bool BackgroundImpl::Layer::CreateBackground( const Song *pSong, const Backgroun
{
const RString &sToResolve = vsToResolve[i];
LUA->SetGlobal( ssprintf("File%d",i+1), RString() ); // clear
LUA->UnsetGlobal( ssprintf("File%d",i+1) ); // clear
if( sToResolve.empty() )
{
@@ -404,7 +404,7 @@ bool BackgroundImpl::Layer::CreateBackground( const Song *pSong, const Backgroun
m_BGAnimations[bd] = pActor;
for( unsigned i=0; i<vsResolved.size(); i++ )
LUA->SetGlobal( ssprintf("File%d",i+1), RString() );
LUA->UnsetGlobal( ssprintf("File%d",i+1) );
LUA->UnsetGlobal( "Color1" );
LUA->UnsetGlobal( "Color2" );