Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Core/SoarKernel/src/explanation_based_chunking/ebc_repair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,16 @@ void Repair_Manager::add_state_link_WMEs(goal_stack_level pTargetGoal, tc_number
void Repair_Manager::add_path_to_goal_WMEs(chunk_element* pTargetSym, tc_number cond_tc)
{
wme_list* l_WMEPath = find_path_to_goal_for_symbol(pTargetSym->instantiated_sym);
for (auto it = l_WMEPath->begin(); it != l_WMEPath->end(); it++)
{
wme* lWME = (*it);
if ((lWME->tc == cond_tc) && (lWME->value != pTargetSym->instantiated_sym))
if (l_WMEPath) {
for (auto it = l_WMEPath->begin(); it != l_WMEPath->end(); it++)
{
continue;
wme* lWME = (*it);
if ((lWME->tc == cond_tc) && (lWME->value != pTargetSym->instantiated_sym))
{
continue;
}
m_repair_WMEs.insert(lWME);
}
m_repair_WMEs.insert(lWME);
}
}

Expand Down