fixed detectMoreLoopClosures when RGBD/LocalBundleOnLoopClosure is true

This commit is contained in:
matlabbe
2020-10-05 17:47:13 -04:00
parent bbccbd63e4
commit 8260733b11
+1 -1
View File
@@ -4650,7 +4650,7 @@ int Rtabmap::detectMoreLoopClosures(
int from = iter->first; int from = iter->first;
int to = iter->second; int to = iter->second;
if(iter->first < iter->second) if(from > to)
{ {
from = iter->second; from = iter->second;
to = iter->first; to = iter->first;