Fix changing between players

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-10-28 23:19:57 +00:00
parent 78865a5608
commit 898be773c3

View File

@ -114,6 +114,7 @@ void StoryModeLobbyScreen::eventCallback(Widget* widget, const std::string& name
if (list->getSelectionLabel() == players[n].getName())
{
unlock_manager->setCurrentSlot(players[n].getUniqueID());
unlock_manager->updateActiveChallengeList();
slot_found = true;
break;
}
@ -155,6 +156,7 @@ void StoryModeLobbyScreen::onNewPlayerWithName(const stringw& newName)
if (players[n].getName() == newName)
{
unlock_manager->setCurrentSlot(players[n].getUniqueID());
unlock_manager->updateActiveChallengeList();
slot_found = true;
break;
}