Pārlūkot izejas kodu

fix .firstChainLoc assignment in handleUnitChainsSimple

Alexander Rose 5 gadi atpakaļ
vecāks
revīzija
4434dfb79a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/mol-model/structure/structure/element/stats.ts

+ 1 - 1
src/mol-model/structure/structure/element/stats.ts

@@ -186,7 +186,7 @@ export namespace Stats {
                 // full chain
                 stats.chainCount += 1;
                 if (stats.chainCount === 1) {
-                    Location.set(stats.firstChainLoc, unit, elements[offsets[cI]]);
+                    Location.set(stats.firstChainLoc, unit, offsets[cI]);
                 }
             }
         }