From a048cc52bb5b1a79855d8778627d5eb254c4e678 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 23 Oct 2005 18:48:25 +0000 Subject: [PATCH] assert earlier if missing rather than when trying to open the Milkshape file --- stepmania/src/ScreenHowToPlay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/ScreenHowToPlay.cpp b/stepmania/src/ScreenHowToPlay.cpp index 955dda90da..350daf92b9 100644 --- a/stepmania/src/ScreenHowToPlay.cpp +++ b/stepmania/src/ScreenHowToPlay.cpp @@ -110,6 +110,8 @@ void ScreenHowToPlay::Init() m_pmCharacter->LoadMilkshapeAsciiBones( "Step-UP", GetAnimPath( ANIM_UP ) ); m_pmCharacter->LoadMilkshapeAsciiBones( "Step-RIGHT", GetAnimPath( ANIM_RIGHT ) ); m_pmCharacter->LoadMilkshapeAsciiBones( "Step-JUMPLR", GetAnimPath( ANIM_JUMPLR ) ); + CString sRestFile = rndchar->GetRestAnimationPath(); + ASSERT( !sRestFile.empty() ); m_pmCharacter->LoadMilkshapeAsciiBones( "rest",rndchar->GetRestAnimationPath() ); m_pmCharacter->SetDefaultAnimation( "rest" ); m_pmCharacter->PlayAnimation( "rest" );