Explorar o código

fix .firstChainLoc assignment in handleUnitChainsSimple

Alexander Rose %!s(int64=5) %!d(string=hai) anos
pai
achega
4434dfb79a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
                 // full chain
                 stats.chainCount += 1;
                 stats.chainCount += 1;
                 if (stats.chainCount === 1) {
                 if (stats.chainCount === 1) {
-                    Location.set(stats.firstChainLoc, unit, elements[offsets[cI]]);
+                    Location.set(stats.firstChainLoc, unit, offsets[cI]);
                 }
                 }
             }
             }
         }
         }