don't allow NULL steps in GetSongFromSteps
This commit is contained in:
@@ -876,8 +876,7 @@ void SongManager::GetStepsLoadedFromProfile( vector<Steps*> &AddTo, ProfileSlot
|
|||||||
|
|
||||||
Song *SongManager::GetSongFromSteps( Steps *pSteps )
|
Song *SongManager::GetSongFromSteps( Steps *pSteps )
|
||||||
{
|
{
|
||||||
if( pSteps == NULL )
|
ASSERT( pSteps );
|
||||||
return NULL;
|
|
||||||
const vector<Song*> &vSongs = SONGMAN->GetAllSongs();
|
const vector<Song*> &vSongs = SONGMAN->GetAllSongs();
|
||||||
FOREACH_CONST( Song*, vSongs, song )
|
FOREACH_CONST( Song*, vSongs, song )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user