|
@@ -133,7 +133,7 @@ function findBonds(unit: Unit.Atomic, props: BondComputationProps): IntraUnitBon
|
|
|
|
|
|
const p = partnerA.atomIndex === aI ? partnerB : partnerA;
|
|
|
const _bI = SortedArray.indexOf(unit.elements, p.atomIndex) as StructureElement.UnitIndex;
|
|
|
- if (_bI < 0) continue;
|
|
|
+ if (_bI < 0 || atoms[_bI] < aI) continue;
|
|
|
|
|
|
atomA[atomA.length] = _aI;
|
|
|
atomB[atomB.length] = _bI;
|