diff --git a/src/pab/pab.ts b/src/pab/pab.ts index c94d982605844100d574efe97f13d0e0933c2979..cd9f157d14698e7782362c9cb6d55de76b9771f1 100644 --- a/src/pab/pab.ts +++ b/src/pab/pab.ts @@ -66,7 +66,7 @@ export class Pab extends Nub { let Z: number = this.prms.Z2.v; Z = this.calcZ1(this.downWall, Q, Z); - for (let i = this.children.length - 1; i > 0; i--) { + for (let i = this.children.length - 1; i >= 0; i--) { // Initialisations for current cloison const cl: PabCloisons = this.children[i];