Explorar o código

Reset ConfalPyramidsIterator internal state correctly when switching
chains

Michal Malý %!s(int64=2) %!d(string=hai) anos
pai
achega
b15196a284
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();
         }
     }