Fixed crash related to locked karts

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5969 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-09-12 13:52:47 +00:00
parent 599d0a806a
commit d9f64b1bd0

View File

@ -727,6 +727,8 @@ public:
{
//printf("%s\n", selectionID.c_str());
const KartProperties *kp = kart_properties_manager->getKart(selectionID);
if (kp != NULL)
{
const KartModel &kart_model = kp->getMasterKartModel();
w3->clearModels();
@ -744,6 +746,7 @@ public:
m_parent->m_kart_widgets[playerID].m_kart_name->setText( selectionText.c_str() );
}
}
m_parent->m_kart_widgets[playerID].setKartInternalName(selectionID);
m_parent->validateKartChoices();