diff --git a/README.md b/README.md index 0106e9ad7..af861d2ae 100644 --- a/README.md +++ b/README.md @@ -318,7 +318,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/ ### Bug Fixes -* +* Fixed `Uncaught TypeError: Cannot set property 'x' of undefined` in Body.js (thanks @ErwanErwan #2607) * * diff --git a/src/physics/arcade/World.js b/src/physics/arcade/World.js index fa28a2935..35d37dbdb 100644 --- a/src/physics/arcade/World.js +++ b/src/physics/arcade/World.js @@ -706,7 +706,7 @@ Phaser.Physics.Arcade.prototype = { if (this.skipQuadTree || sprite.body.skipQuadTree) { - var bounds; + var bounds = {}; for (var i = 0; i < group.hash.length; i++) {