sanity check (m_pTempState points somewhere in the other actor)

This commit is contained in:
Glenn Maynard
2005-07-19 07:52:11 +00:00
parent 2e05545ec7
commit df19b084fd
+3 -1
View File
@@ -116,6 +116,9 @@ Actor::~Actor()
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
CPY( m_sName );
CPY( m_pLuaInstance );
@@ -132,7 +135,6 @@ Actor::Actor( const Actor &cpy )
m_Tweens.push_back( new TweenStateAndInfo(*cpy.m_Tweens[i]) );
CPY( m_tempState );
CPY( m_pTempState );
CPY( m_bFirstUpdate );