Fix crash in cases when first BA step happens with all zero-weighted tracks

This commit is contained in:
Sergey Sharybin 2014-07-23 00:46:26 +06:00
parent 8a52e7eeba
commit 895f0f3dff
1 changed files with 1 additions and 2 deletions

View File

@ -539,9 +539,8 @@ void EuclideanBundleCommonIntrinsics(
}
zero_weight_tracks_flags[marker.track] = false;
num_residuals++;
}
num_residuals++;
}
LG << "Number of residuals: " << num_residuals;