diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index 7a21611a80..f8af0e84d5 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -73,14 +73,9 @@ void LuaManager::SetGlobal( const CString &sName, const CString &val ) } void LuaManager::UnsetGlobal( const CString &sName ) -{ - PushStackNil(); - SetGlobal( sName ); -} - -void LuaManager::PushStackNil() { lua_pushnil( L ); + SetGlobal( sName ); } diff --git a/stepmania/src/LuaManager.h b/stepmania/src/LuaManager.h index eb0213c003..b062080761 100644 --- a/stepmania/src/LuaManager.h +++ b/stepmania/src/LuaManager.h @@ -86,7 +86,6 @@ public: void SetGlobal( const CString &sName, const CString &val ); void UnsetGlobal( const CString &sName ); - void PushStackNil(); void PushNopFunction(); bool GetStack( int pos, int &out );