From bd9dafc7ba172a44b1c8ab5dfcbe7f871761dd52 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 31 May 2007 18:35:58 +0000 Subject: [PATCH] Don't warn about number of states in _missing either. --- stepmania/src/Sprite.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index 56553f4f3a..2801e9994c 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -702,8 +702,9 @@ void Sprite::SetState( int iNewState ) // Never warn about setting state 0. if( iNewState != 0 && (iNewState < 0 || iNewState >= (int)m_States.size()) ) { - // Don't warn about number of states in "_blank". - if( !m_pTexture || m_pTexture->GetID().filename.find("_blank") == string::npos ) + // Don't warn about number of states in "_blank" or "_missing". + if( !m_pTexture || (m_pTexture->GetID().filename.find("_blank") == string::npos && + m_pTexture->GetID().filename.find("_missing") == string::npos) ) { RString sError; if( m_pTexture )