Avoid a crash when using close button in kart selection screen

This commit is contained in:
Deve 2018-10-02 22:28:12 +02:00
parent da4f6cf8cf
commit b26d8f3454

View File

@ -272,6 +272,8 @@ PlayerKartWidget::~PlayerKartWidget()
if (m_kart_name->getIrrlichtElement() != NULL)
m_kart_name->getIrrlichtElement()->remove();
if (getCurrentScreen() != NULL)
getCurrentScreen()->manualRemoveWidget(this);
#ifdef DEBUG