assert on doubly defined commands
This commit is contained in:
@@ -1019,6 +1019,8 @@ void Actor::QueueMessage( const CString& sMessageName )
|
|||||||
|
|
||||||
void Actor::AddCommand( const CString &sCmdName, apActorCommands apac )
|
void Actor::AddCommand( const CString &sCmdName, apActorCommands apac )
|
||||||
{
|
{
|
||||||
|
ASSERT_M( !HasCommand(sCmdName), m_sName+"'s command '"+sCmdName+"' defined twice" );
|
||||||
|
|
||||||
CString sMessage;
|
CString sMessage;
|
||||||
if( GetMessageNameFromCommandName(sCmdName, sMessage) )
|
if( GetMessageNameFromCommandName(sCmdName, sMessage) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user