From a69c0864457a8c36303fd36a5088621e2384ac31 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Tue, 3 Jan 2023 15:15:07 -0500 Subject: [PATCH] Fix count issue --- gtsam/nonlinear/ISAM2Clique.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/nonlinear/ISAM2Clique.cpp b/gtsam/nonlinear/ISAM2Clique.cpp index f7a1c14a0..b3dc49342 100644 --- a/gtsam/nonlinear/ISAM2Clique.cpp +++ b/gtsam/nonlinear/ISAM2Clique.cpp @@ -245,7 +245,7 @@ bool ISAM2Clique::optimizeWildfireNode(const KeySet& replaced, double threshold, // Back-substitute fastBackSubstitute(delta); - count += conditional_->nrFrontals(); + *count += conditional_->nrFrontals(); if (valuesChanged(replaced, originalValues, *delta, threshold)) { markFrontalsAsChanged(changed);