Skip to content

Commit

Permalink
clear animation map on stop
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Jun 20, 2024
1 parent c7ab62e commit 160f188
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public void init() {

@Override
public void stop() {
this.animationMap.clear();
this.buttons.forEach(Button::stop);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public void init() {

@Override
public void stop() {
this.animationMap.clear();
this.masks.forEach(Mask::stop);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ public void init() {

@Override
public void stop() {
animationMap.clear();
masks.forEach(Mask::stop);
masks.clear();
this.animationMap.clear();
this.masks.forEach(Mask::stop);
}
}

0 comments on commit 160f188

Please sign in to comment.