fix null deref if song set and steps not set in GetCurrentCreditsText

This commit is contained in:
Chris Danford
2006-07-02 06:03:48 +00:00
parent a31fd85b1d
commit c2e8e70cf7
+2
View File
@@ -1984,6 +1984,8 @@ public:
FOREACH_HumanPlayer( p )
{
const Steps* pSteps = GAMESTATE->m_pCurSteps[p];
if( pSteps == NULL )
return 0;
bool bAlreadyAdded = find( vpStepsToShow.begin(), vpStepsToShow.end(), pSteps ) != vpStepsToShow.end();
if( !bAlreadyAdded )
vpStepsToShow.push_back( pSteps );