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:
parent
57085843ae
commit
47a7076ab0
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user