Browse Source

Reset ConfalPyramidsIterator internal state correctly when switching
chains

Michal Malý 2 years ago
parent
commit
b15196a284
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/extensions/dnatco/confal-pyramids/util.ts

+ 2 - 0
src/extensions/dnatco/confal-pyramids/util.ts

@@ -87,6 +87,8 @@ export class ConfalPyramidsIterator {
             return this.moveStep();
         } else {
             this.residueIt.setSegment(this.chainIt.move());
+            if (this.residueIt.hasNext)
+                this.residueTwo = this.residueIt.move();
             return this.moveStep();
         }
     }