sanity check

This commit is contained in:
Glenn Maynard
2004-02-14 10:38:40 +00:00
parent c1daa4ca1b
commit 7bb3752901
+6 -1
View File
@@ -64,6 +64,12 @@ Actor* LoadFromActorFile( CString sIniPath, CString sLayer )
*
* and allow "$TextItem$" in .actors to reference that.
*/
/* Be careful: if sFile is "", and we don't check it, then we can end up recursively
* loading the BGAnimationLayer that we're in. */
if( sFile == "" )
RageException::Throw( "The actor file '%s' layer %s is missing File",
sIniPath.c_str(), sLayer.c_str() );
CString text;
if( ini.GetValue ( sLayer, "Text", text ) )
{
@@ -84,7 +90,6 @@ Actor* LoadFromActorFile( CString sIniPath, CString sLayer )
}
else
{
if( sFile.CompareNoCase("songbackground")==0 )
{
Song *pSong = GAMESTATE->m_pCurSong;