Don't warn about number of states in _missing either.

This commit is contained in:
Steve Checkoway
2007-05-31 18:35:58 +00:00
parent f2671274da
commit bd9dafc7ba
+3 -2
View File
@@ -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 )