Avoid potential crash with challenges

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10726 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-01-26 18:14:01 +00:00
parent 57085843ae
commit 47a7076ab0

View File

@ -214,7 +214,8 @@ void GameSlot::save(XMLWriter& out)
for(i = m_challenges_state.begin();
i != m_challenges_state.end(); i++)
{
i->second->save(out);
if (i->second != NULL)
i->second->save(out);
}
out << " </gameslot>\n";
}