This commit is contained in:
Glenn Maynard
2005-05-05 20:06:47 +00:00
parent 3db3500226
commit b8bb5890f9
+3 -3
View File
@@ -698,12 +698,12 @@ void Sprite::SetState( int iNewState )
{ {
CString sError; CString sError;
if( m_pTexture ) if( m_pTexture )
sError = ssprintf("The Sprite '%s' (\"%s\") tried to set state index %d, but it has only %u states", sError = ssprintf("A Sprite '%s' (\"%s\") tried to set state index %d, but it has only %u states.",
m_pTexture->GetID().filename.c_str(), this->m_sName.c_str(), iNewState, unsigned(m_States.size())); m_pTexture->GetID().filename.c_str(), this->m_sName.c_str(), iNewState, unsigned(m_States.size()));
else else
sError = ssprintf("A Sprite (\"%s\") tried to set state index %d but no texture is loaded.", sError = ssprintf("A Sprite (\"%s\") tried to set state index %d, but no texture is loaded.",
this->m_sName.c_str(), iNewState ); this->m_sName.c_str(), iNewState );
Dialog::OK( sError ); Dialog::OK( sError, "SPRITE_INVALID_FRAME" );
} }
} }