mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Fixed Sprite.destroy with an arcade body
This commit is contained in:
parent
5e11b1ad87
commit
fc5504f8d8
2 changed files with 12 additions and 0 deletions
|
@ -58,6 +58,7 @@ Version 2.0.1 - "Aes Sedai" - -in development-
|
|||
Bug Fixes
|
||||
|
||||
* The Static, Kinematic and Dynamic consts that P2.Body uses were incorrect (fixes #563)
|
||||
* Sprite.destroy would fail if it had an Arcade Physics body, now added.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -438,6 +438,17 @@ Phaser.Physics.Arcade.Body.prototype = {
|
|||
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes this bodies reference to its parent sprite, freeing it up for gc.
|
||||
*
|
||||
* @method Phaser.Physics.Arcade#destroy
|
||||
*/
|
||||
destroy: function () {
|
||||
|
||||
this.sprite = null;
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Internal method.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue