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:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user