Update: Minor improvement, check if concept has user knowledge before checking if a link markes as part of ontology exists
@@ -278,6 +278,8 @@ void Memory_ProcessNewEvent(Event *event, long currentTime, double priority, lon
for(int j=0; j<concepts.itemsAmount; j++)
{
Concept *cpost = concepts.items[j].address;
+ if(cpost->hasUserKnowledge)
+ {
for(int k=0; k<cpost->precondition_beliefs[0].itemsAmount; k++)
{
Implication *imp = &cpost->precondition_beliefs[0].array[k];
@@ -308,6 +310,7 @@ void Memory_ProcessNewEvent(Event *event, long currentTime, double priority, lon
}
}
}
+ }
//END SPECIAL HANDLING FOR USER KNOWLEDGE
}
}
