Don't create icons for guests (which are never shown).

This commit is contained in:
hiker 2014-06-02 17:07:57 +10:00
parent eea9d6dbd8
commit 0d789c3bd2

View File

@ -146,7 +146,7 @@ void PlayerProfile::initRemainingData()
*/ */
void PlayerProfile::addIcon() void PlayerProfile::addIcon()
{ {
if (m_icon_filename.size() > 0) if (m_icon_filename.size() > 0 || isGuestAccount())
return; return;
int n = m_unique_id % kart_properties_manager->getNumberOfKarts(); int n = m_unique_id % kart_properties_manager->getNumberOfKarts();