diff --git a/stepmania/src/AutoActor.cpp b/stepmania/src/AutoActor.cpp index c74ace529e..939856ec7b 100644 --- a/stepmania/src/AutoActor.cpp +++ b/stepmania/src/AutoActor.cpp @@ -27,6 +27,12 @@ AutoActor &AutoActor::operator=( const AutoActor &cpy ) return *this; } +void AutoActor::Load( Actor *pActor ) +{ + Unload(); + m_pActor = pActor; +} + void AutoActor::Load( const RString &sPath ) { Unload(); diff --git a/stepmania/src/AutoActor.h b/stepmania/src/AutoActor.h index 32d3dfdc2e..f1ba3796b3 100644 --- a/stepmania/src/AutoActor.h +++ b/stepmania/src/AutoActor.h @@ -21,6 +21,7 @@ public: Actor *operator->() { return m_pActor; } void Unload(); bool IsLoaded() const { return m_pActor != NULL; } + void Load( Actor *pActor ); void Load( const RString &sPath ); void LoadFromNode( const RString &sDir, const XNode* pNode ); void LoadAndSetName( const RString &sScreenName, const RString &sActorName );