Make this more tolerant: it's too easy to not cache a skin, especially

in the editor and how to play.
This commit is contained in:
Glenn Maynard
2003-10-26 08:24:46 +00:00
parent 9db6700c2f
commit 4321e32251
+5 -1
View File
@@ -124,8 +124,12 @@ void NoteField::RefreshBeatToNoteSkin()
const CString &Skin = it->second;
map<CString, NoteDisplayCols *>::iterator display = m_NoteDisplays.find( Skin );
if( display == m_NoteDisplays.end() )
{
this->CacheNoteSkin( Skin );
display = m_NoteDisplays.find( Skin );
}
/* If this happens, we tried to use a note skin that wasn't pre-cached. */
RAGE_ASSERT_M( display != m_NoteDisplays.end(), ssprintf("Couldn't find %s", Skin.c_str()) );
NoteDisplayCols *cols = display->second;