diff --git a/src/challenges/game_slot.cpp b/src/challenges/game_slot.cpp index 20bd872b1..e7c1db328 100644 --- a/src/challenges/game_slot.cpp +++ b/src/challenges/game_slot.cpp @@ -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 << " \n"; }