From 80e732f718ec5024e93bf99d3ea78c34177cd04a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 4 May 2005 09:59:41 +0000 Subject: [PATCH] assert on doubly defined commands --- stepmania/src/Actor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 16961bc392..6d497cb760 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -1019,6 +1019,8 @@ void Actor::QueueMessage( const CString& sMessageName ) void Actor::AddCommand( const CString &sCmdName, apActorCommands apac ) { + ASSERT_M( !HasCommand(sCmdName), m_sName+"'s command '"+sCmdName+"' defined twice" ); + CString sMessage; if( GetMessageNameFromCommandName(sCmdName, sMessage) ) {