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:
parent
599d0a806a
commit
d9f64b1bd0
@ -727,6 +727,8 @@ public:
|
|||||||
{
|
{
|
||||||
//printf("%s\n", selectionID.c_str());
|
//printf("%s\n", selectionID.c_str());
|
||||||
const KartProperties *kp = kart_properties_manager->getKart(selectionID);
|
const KartProperties *kp = kart_properties_manager->getKart(selectionID);
|
||||||
|
if (kp != NULL)
|
||||||
|
{
|
||||||
const KartModel &kart_model = kp->getMasterKartModel();
|
const KartModel &kart_model = kp->getMasterKartModel();
|
||||||
|
|
||||||
w3->clearModels();
|
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].m_kart_name->setText( selectionText.c_str() );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_parent->m_kart_widgets[playerID].setKartInternalName(selectionID);
|
m_parent->m_kart_widgets[playerID].setKartInternalName(selectionID);
|
||||||
m_parent->validateKartChoices();
|
m_parent->validateKartChoices();
|
||||||
|
Loading…
Reference in New Issue
Block a user