Skip to content

Commit

Permalink
Clear all other particle arrays when reset. See #62.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luisav1 committed Nov 11, 2022
1 parent 026a113 commit c7612f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/common/model/BANModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ class BANModel {
public reset(): void {
this.particleAtom.clear();
this.particles.clear();
this.incomingProtons.clear();
this.incomingNeutrons.clear();
this.outgoingParticles.clear();
this.userControlledProtons.clear();
this.userControlledNeutrons.clear();
this.particleAnimations.clear();
}

Expand Down

0 comments on commit c7612f0

Please sign in to comment.