Skip to content

Commit a1bb3ea

Browse files
committed
pop first element if there is only one shape
1 parent 664d5b3 commit a1bb3ea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/physics/Body.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ Phaser.Physics.Body.prototype = {
10011001
{
10021002
var temp = [];
10031003

1004+
data = data.pop()
10041005
// We've a list of numbers
10051006
for (var i = 0, len = data.shape.length; i < len; i += 2)
10061007
{

0 commit comments

Comments
 (0)