Bug fix in replace()

release/4.3a0
Richard Roberts 2010-02-08 22:22:38 +00:00
parent ea9b44ea15
commit fbef948254
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ void FactorGraph<Factor>::replace(int index, sharedFactor factor) {
if(factors_[index] != NULL) {
// Remove this factor from its variables' index lists
BOOST_FOREACH(const Symbol& key, factor->keys()) {
BOOST_FOREACH(const Symbol& key, factors_[index]->keys()) {
indices_.at(key).remove(index);
}
}