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:
parent
f3f58cc297
commit
76374f0198
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user