From db3c0458d87aebf8561924c5c996e283f0c4453a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 25 Sep 2006 06:52:04 +0000 Subject: [PATCH] don't leave globals around --- stepmania/src/Background.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Background.cpp b/stepmania/src/Background.cpp index 27cd0d406c..fdb4f3c363 100644 --- a/stepmania/src/Background.cpp +++ b/stepmania/src/Background.cpp @@ -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; iSetGlobal( ssprintf("File%d",i+1), RString() ); + LUA->UnsetGlobal( ssprintf("File%d",i+1) ); LUA->UnsetGlobal( "Color1" ); LUA->UnsetGlobal( "Color2" );