fix warning
This commit is contained in:
@@ -1748,7 +1748,7 @@ void ScreenGameplay::StageFinished()
|
|||||||
{
|
{
|
||||||
if( GAMESTATE->IsCourseMode() && GAMESTATE->m_PlayMode != PLAY_MODE_ENDLESS )
|
if( GAMESTATE->IsCourseMode() && GAMESTATE->m_PlayMode != PLAY_MODE_ENDLESS )
|
||||||
{
|
{
|
||||||
LOG->Trace("Stage finished at index %i/%lu", GAMESTATE->GetCourseSongIndex(), m_apSongsQueue.size() );
|
LOG->Trace("Stage finished at index %i/%i", GAMESTATE->GetCourseSongIndex(), (int) m_apSongsQueue.size() );
|
||||||
/* +1 to skip the current song; that's done already. */
|
/* +1 to skip the current song; that's done already. */
|
||||||
for( unsigned iPlaySongIndex = GAMESTATE->GetCourseSongIndex()+1;
|
for( unsigned iPlaySongIndex = GAMESTATE->GetCourseSongIndex()+1;
|
||||||
iPlaySongIndex < m_apSongsQueue.size(); ++iPlaySongIndex )
|
iPlaySongIndex < m_apSongsQueue.size(); ++iPlaySongIndex )
|
||||||
|
|||||||
@@ -594,9 +594,9 @@ void ScreenOptionsMaster::RefreshIcons()
|
|||||||
if( iSelection >= (int)m_OptionRow[i].choices.size() )
|
if( iSelection >= (int)m_OptionRow[i].choices.size() )
|
||||||
{
|
{
|
||||||
/* Invalid selection. Send debug output, to aid debugging. */
|
/* Invalid selection. Send debug output, to aid debugging. */
|
||||||
CString error = ssprintf("Option row with name '%s' selects item %i, but there are only %lu items:\n",
|
CString error = ssprintf("Option row with name '%s' selects item %i, but there are only %i items:\n",
|
||||||
m_OptionRow[i].name.c_str(),
|
m_OptionRow[i].name.c_str(),
|
||||||
iSelection, m_OptionRow[i].choices.size() );
|
iSelection, (int) m_OptionRow[i].choices.size() );
|
||||||
|
|
||||||
for( unsigned j = 0; j < m_OptionRow[i].choices.size(); ++j )
|
for( unsigned j = 0; j < m_OptionRow[i].choices.size(); ++j )
|
||||||
error += ssprintf(" %s\n", m_OptionRow[i].choices[j].c_str());
|
error += ssprintf(" %s\n", m_OptionRow[i].choices[j].c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user