From 1327fa63567679aaf47fdf1bb9590fe1ba9801eb Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sun, 20 Jan 2013 18:11:17 -0500 Subject: [PATCH] Steps: add a pointer to the associated Song. not used yet. --- src/Steps.cpp | 2 +- src/Steps.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Steps.cpp b/src/Steps.cpp index 70c6edc168..9e53aed9a7 100644 --- a/src/Steps.cpp +++ b/src/Steps.cpp @@ -42,7 +42,7 @@ static const char *DisplayBPMNames[] = XToString( DisplayBPM ); LuaXType( DisplayBPM ); -Steps::Steps(): m_StepsType(StepsType_Invalid), +Steps::Steps(): m_StepsType(StepsType_Invalid), m_pSong(NULL), parent(NULL), m_pNoteData(new NoteData), m_bNoteDataIsFilled(false), m_sNoteDataCompressed(""), m_sFilename(""), m_bSavedToDisk(false), m_LoadedFromProfile(ProfileSlot_Invalid), m_iHash(0), diff --git a/src/Steps.h b/src/Steps.h index e81e754269..6838ed55ed 100644 --- a/src/Steps.h +++ b/src/Steps.h @@ -171,6 +171,8 @@ public: void PushSelf( lua_State *L ); StepsType m_StepsType; + /** @brief The Song these Steps are associated with */ + Song *m_pSong; CachedObject m_CachedObject;