mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Merge pull request #4949 from samme/fix/collideSpriteVsSprite
Check for disabled body in collideSpriteVsGroup()
This commit is contained in:
commit
8b9819b8f7
1 changed files with 1 additions and 1 deletions
|
@ -1948,7 +1948,7 @@ var World = new Class({
|
||||||
{
|
{
|
||||||
bodyB = results[i];
|
bodyB = results[i];
|
||||||
|
|
||||||
if (bodyA === bodyB || !group.contains(bodyB.gameObject))
|
if (bodyA === bodyB || !bodyB.enable || !group.contains(bodyB.gameObject))
|
||||||
{
|
{
|
||||||
// Skip if comparing against itself, or if bodyB isn't actually part of the Group
|
// Skip if comparing against itself, or if bodyB isn't actually part of the Group
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue