mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Added missing check
This commit is contained in:
parent
5f1fff6d48
commit
1777c47a23
1 changed files with 2 additions and 2 deletions
|
@ -2002,9 +2002,9 @@ var World = new Class({
|
|||
{
|
||||
bodyB = results[i];
|
||||
|
||||
if (bodyA === bodyB)
|
||||
if (bodyA === bodyB || !group.contains(bodyB.gameObject))
|
||||
{
|
||||
// Skip if comparing against itself
|
||||
// Skip if comparing against itself, or if bodyB isn't actually part of the Group
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue