pop first element if there is only one shape

This commit is contained in:
Georgios Kaleadis
2014-03-01 12:04:30 +01:00
parent 664d5b3e2c
commit a1bb3ea23b
+1
View File
@@ -1001,6 +1001,7 @@ Phaser.Physics.Body.prototype = {
{
var temp = [];
data = data.pop()
// We've a list of numbers
for (var i = 0, len = data.shape.length; i < len; i += 2)
{