diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index a6b50a24a5..22e26ad166 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -2074,16 +2074,15 @@ public: return 0; // use a vector and not a set so that ordering is maintained - vector vpStepsToShow; + vector vpStepsToShow; FOREACH_HumanPlayer( p ) { - Steps* pSteps = GAMESTATE->m_pCurSteps[p]; + const Steps* pSteps = GAMESTATE->m_pCurSteps[p]; bool bAlreadyAdded = find( vpStepsToShow.begin(), vpStepsToShow.end(), pSteps ) != vpStepsToShow.end(); if( !bAlreadyAdded ) vpStepsToShow.push_back( pSteps ); } - CString s; for( unsigned i=0; iGetDescription(); + lua_pushstring( L, sDifficulty ); + lua_pushstring( L, pSteps->GetDescription() ); } - lua_pushstring( L, s ); - return 1; + return vpStepsToShow.size()*2; }