Fixed Body.removeFromWorld

This commit is contained in:
photonstorm committed 2014-02-19 04:05:12 +00:00
1 parent 7373db6e8c
commit f6807e23c6
3 files changed
+12 -6

No files matched your search

+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();
}