소스 검색

Reset ConfalPyramidsIterator internal state correctly when switching
chains

Michal Malý 2 년 전
부모
커밋
b15196a284
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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();
         }
     }