From 1733cc128cbae3bf8d54409ec006d0d176763295 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 11 Oct 2005 21:45:35 +0000 Subject: [PATCH] add assert --- stepmania/src/ActorUtil.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 6be2545398..1345c31534 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -238,6 +238,11 @@ all_done: Actor* ActorUtil::MakeActor( const CString &sPath_ ) { CString sPath( sPath_ ); + + /* If @ expressions are allowed through this path, we've already + * evaluated them. Make sure we don't allow double-evaluation. */ + ASSERT_M( sPath.empty() || sPath[0] != '@', sPath ); + FileType ft = GetFileType( sPath ); switch( ft ) {