Skip to content

Commit 276ef9c

Browse files
committed
Method expects body
Fixes crash in map.generateCollisionData
1 parent a6d77d0 commit 276ef9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tilemap/Tilemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ Phaser.Tilemap.prototype = {
367367

368368
if (addToWorld)
369369
{
370-
this.game.physics.addBody(body.data);
370+
this.game.physics.addBody(body);
371371
}
372372

373373
this.layers[layer].bodies.push(body);

0 commit comments

Comments
 (0)