sanity check (m_pTempState points somewhere in the other actor)
This commit is contained in:
@@ -116,6 +116,9 @@ Actor::~Actor()
|
|||||||
|
|
||||||
Actor::Actor( const Actor &cpy )
|
Actor::Actor( const Actor &cpy )
|
||||||
{
|
{
|
||||||
|
/* Don't copy an Actor in the middle of rendering. */
|
||||||
|
ASSERT( cpy.m_pTempState == NULL );
|
||||||
|
|
||||||
#define CPY(x) x = cpy.x
|
#define CPY(x) x = cpy.x
|
||||||
CPY( m_sName );
|
CPY( m_sName );
|
||||||
CPY( m_pLuaInstance );
|
CPY( m_pLuaInstance );
|
||||||
@@ -132,7 +135,6 @@ Actor::Actor( const Actor &cpy )
|
|||||||
m_Tweens.push_back( new TweenStateAndInfo(*cpy.m_Tweens[i]) );
|
m_Tweens.push_back( new TweenStateAndInfo(*cpy.m_Tweens[i]) );
|
||||||
|
|
||||||
CPY( m_tempState );
|
CPY( m_tempState );
|
||||||
CPY( m_pTempState );
|
|
||||||
|
|
||||||
CPY( m_bFirstUpdate );
|
CPY( m_bFirstUpdate );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user