Fixed Body.removeFromWorld

This commit is contained in:
photonstorm
2014-02-19 04:05:12 +00:00
parent 7373db6e8c
commit f6807e23c6
3 changed files with 12 additions and 6 deletions
+2
View File
@@ -903,9 +903,11 @@ Object.defineProperty(Phaser.Sprite.prototype, "exists", {
{
// exists = false
this._cache[6] = 0;
console.log('exists false');
if (this.body)
{
console.log('exists false remove from world');
this.body.removeFromWorld();
}