From b53362bc9524e45d4d1ad5f7639bd902b494a2f1 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 16 Feb 2007 07:07:40 +0000 Subject: [PATCH] add !sType.empty() assert --- stepmania/src/ActorUtil.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 754af4e2dd..a51fef2f77 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -478,6 +478,10 @@ void ActorUtil::LoadAndPlayCommand( Actor& actor, const RString &sType, const RS !actor.GetName().empty(), ssprintf("!actor.GetName().empty() ('%s', '%s')", sType.c_str(), sCommandName.c_str()) ); + ASSERT_M( + !sType.empty(), + ssprintf("!sType.empty() ('%s', '%s')", sType.c_str(), sCommandName.c_str()) + ); if( !actor.HasCommand(sCommandName ) ) // this actor hasn't loaded commands yet LoadAllCommands( actor, sType );