From 0468d26316d68d9bebec0e6431d60539152ff07c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 10 Oct 2003 23:42:02 +0000 Subject: [PATCH] improve output --- stepmania/src/ActorFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ActorFrame.cpp b/stepmania/src/ActorFrame.cpp index fb0bd8c521..03c33aaa19 100644 --- a/stepmania/src/ActorFrame.cpp +++ b/stepmania/src/ActorFrame.cpp @@ -17,7 +17,9 @@ void ActorFrame::AddChild( Actor* pActor ) #if _DEBUG // check that this Actor isn't already added. vector::iterator iter = find( m_SubActors.begin(), m_SubActors.end(), pActor ); - ASSERT( iter == m_SubActors.end() ); // didn't find + if( iter != m_SubActors.end() ) + RageException::Throw( "Actor \"%s\" adds child \"%s\" more than once", + m_sName.c_str(), pActor->m_sName.c_str() ); #endif ASSERT( pActor );