From 23e763c1078f1f66a3bf0b35f53ced8e3fd8698a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 10 Mar 2004 07:19:40 +0000 Subject: [PATCH] fix eval screen assert --- stepmania/src/ActorUtil.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stepmania/src/ActorUtil.h b/stepmania/src/ActorUtil.h index e8c5b2e05e..3184351ee3 100644 --- a/stepmania/src/ActorUtil.h +++ b/stepmania/src/ActorUtil.h @@ -52,14 +52,14 @@ Actor* MakeActor( RageTextureID ID ); class AutoActor { public: - AutoActor() { m_pActor = NULL; } - ~AutoActor() { Unload(); } - operator const Actor* () const { ASSERT(m_pActor); return m_pActor; } - operator Actor* () { ASSERT(m_pActor); return m_pActor; } - const Actor *operator->() const { ASSERT(m_pActor); return m_pActor; } - Actor *operator->() { ASSERT(m_pActor); return m_pActor; } - void Unload() { if(m_pActor) { delete m_pActor; m_pActor=NULL; } } - bool IsLoaded() const { return m_pActor != NULL; } + AutoActor() { m_pActor = NULL; } + ~AutoActor() { Unload(); } + operator const Actor* () const { return m_pActor; } + operator Actor* () { return m_pActor; } + const Actor *operator->() const { return m_pActor; } + Actor *operator->() { return m_pActor; } + void Unload() { if(m_pActor) { delete m_pActor; m_pActor=NULL; } } + bool IsLoaded() const { return m_pActor != NULL; } void Load( CString sPath ) { Unload();