Handle exceptional situation in kart selection screen by just printing to stderr... it shouldn't happen

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2010-06-24 18:34:41 +00:00
parent 3b617a95a1
commit dcc4d54365

View File

@@ -1005,7 +1005,8 @@ bool KartSelectionScreen::playerQuit(StateManager::ActivePlayer* player)
const bool success = w->setSelection(selectedKart.c_str(), n, true);
if (!success)
{
// TODO: handle players that lose their kart
std::cerr << "Failed to select kart " << selectedKart.c_str() << " for player " << n
<< ", what's going on??\n";
}
}
}