mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Check for disabled body in collideSpriteVsGroup()
This commit is contained in:
parent
d63001d719
commit
eacb61e109
1 changed files with 1 additions and 1 deletions
|
@ -1948,7 +1948,7 @@ var World = new Class({
|
|||
{
|
||||
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
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue