From 276ef9c26808265ef6c318cf4df6f3e13ad389a6 Mon Sep 17 00:00:00 2001 From: Jonas Malm Date: Sun, 23 Feb 2014 17:42:39 +0100 Subject: [PATCH] Method expects body Fixes crash in map.generateCollisionData --- src/tilemap/Tilemap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tilemap/Tilemap.js b/src/tilemap/Tilemap.js index 70d03693..cd99b2bb 100644 --- a/src/tilemap/Tilemap.js +++ b/src/tilemap/Tilemap.js @@ -367,7 +367,7 @@ Phaser.Tilemap.prototype = { if (addToWorld) { - this.game.physics.addBody(body.data); + this.game.physics.addBody(body); } this.layers[layer].bodies.push(body);