Skip to content

Commit

Permalink
Merge pull request #54 from diarmidmackenzie/issue-47-simple-fix
Browse files Browse the repository at this point in the history
Fix crass bug in PR#52
  • Loading branch information
diarmidmackenzie committed Nov 20, 2023
2 parents 40a6888 + eaf5911 commit c5ae48b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/aframe-physics-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -14202,7 +14202,7 @@ let AmmoBody = {
// So if we are reporting collision events, preferable to
// tolerate a small memory leak, by not destroying the
// Ammo body, rather than missing collision events.
Ammo.destroy(body);
Ammo.destroy(this.body);
}
delete this.body;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/aframe-physics-system.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/body/ammo-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ let AmmoBody = {
// So if we are reporting collision events, preferable to
// tolerate a small memory leak, by not destroying the
// Ammo body, rather than missing collision events.
Ammo.destroy(body);
Ammo.destroy(this.body);
}
delete this.body;
}
Expand Down

0 comments on commit c5ae48b

Please sign in to comment.