mirror of
https://github.com/photonstorm/phaser
synced 2024-12-02 09:30:06 +00:00
parent
0b903bf792
commit
78771d875b
1 changed files with 3 additions and 1 deletions
|
@ -950,7 +950,9 @@ Phaser.Physics.P2.Body.prototype = {
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
points = Array.prototype.slice.call(arguments, 1);
|
if (!Array.isArray(points)) {
|
||||||
|
points = Array.prototype.slice.call(arguments, 1);
|
||||||
|
}
|
||||||
|
|
||||||
var path = [];
|
var path = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue