Shut up annoying warning

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8082 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-03-27 01:30:38 +00:00
parent f3f58cc297
commit 76374f0198
2 changed files with 6 additions and 2 deletions

View File

@ -987,7 +987,7 @@ bool DynamicRibbonWidget::setSelection(int item_id, const int playerID, const bo
if (row == -1)
{
std::cerr << "DynamicRibbonWidget::setSelection cannot find item " << item_id << " (" << name.c_str() << ")\n";
//std::cerr << "DynamicRibbonWidget::setSelection cannot find item " << item_id << " (" << name.c_str() << ")\n";
return false;
}

View File

@ -236,7 +236,11 @@ void OptionsScreenVideo::init()
if (items[n].m_code_name == searching_for)
{
// that's the current one
res->setSelection(n, PLAYER_ID_GAME_MASTER, false);
if (!res->setSelection(n, PLAYER_ID_GAME_MASTER, false))
{
std::cerr << "DynamicRibbonWidget::setSelection cannot find item " << n << " ("
<< items[n].m_code_name.c_str() << ")\n";
}
break;
}
} // end for