Shared players will only be using the master player's NoteData, Check that the track actually exists before attempting to use it.

This commit is contained in:
Steve Checkoway
2006-06-24 03:31:16 +00:00
parent 8f441235a3
commit a49787da67
+3
View File
@@ -70,6 +70,9 @@ void AutoKeysounds::FinishLoading()
int iNextRow = INT_MAX;
FOREACH_EnabledPlayer(pn)
{
// XXX Hack. Enabled players need not have their own note data.
if( t >= m_ndAutoKeysoundsOnly[pn].GetNumTracks() )
continue;
int iNextRowForPlayer = iRow;
if( m_ndAutoKeysoundsOnly[pn].GetNextTapNoteRowForTrack( t, iNextRowForPlayer ) )
iNextRow = min( iNextRow, iNextRowForPlayer );