fix null deref if song set and steps not set in GetCurrentCreditsText
This commit is contained in:
@@ -1984,6 +1984,8 @@ public:
|
|||||||
FOREACH_HumanPlayer( p )
|
FOREACH_HumanPlayer( p )
|
||||||
{
|
{
|
||||||
const Steps* pSteps = GAMESTATE->m_pCurSteps[p];
|
const Steps* pSteps = GAMESTATE->m_pCurSteps[p];
|
||||||
|
if( pSteps == NULL )
|
||||||
|
return 0;
|
||||||
bool bAlreadyAdded = find( vpStepsToShow.begin(), vpStepsToShow.end(), pSteps ) != vpStepsToShow.end();
|
bool bAlreadyAdded = find( vpStepsToShow.begin(), vpStepsToShow.end(), pSteps ) != vpStepsToShow.end();
|
||||||
if( !bAlreadyAdded )
|
if( !bAlreadyAdded )
|
||||||
vpStepsToShow.push_back( pSteps );
|
vpStepsToShow.push_back( pSteps );
|
||||||
|
|||||||
Reference in New Issue
Block a user