diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 14a126e4e8..936bd9b7d3 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -126,6 +126,7 @@ Actor::Actor() m_size = RageVector2( 1, 1 ); InitDefaults(); + m_pParent = NULL; m_bFirstUpdate = true; } @@ -144,6 +145,7 @@ Actor::Actor( const Actor &cpy ): #define CPY(x) x = cpy.x CPY( m_sName ); + CPY( m_pParent ); CPY( m_pLuaInstance ); CPY( m_baseRotation ); @@ -1273,6 +1275,8 @@ void Actor::PushContext( lua_State *L ) void Actor::SetParent( Actor *pParent ) { + m_pParent = pParent; + Lua *L = LUA->Get(); int iTop = lua_gettop( L ); diff --git a/stepmania/src/Actor.h b/stepmania/src/Actor.h index 8006d5954f..eea8ca1578 100644 --- a/stepmania/src/Actor.h +++ b/stepmania/src/Actor.h @@ -362,6 +362,7 @@ public: protected: RString m_sName; + Actor *m_pParent; struct TweenInfo {