Skip to content

Commit 1777c47

Browse files
committed
Added missing check
1 parent 5f1fff6 commit 1777c47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/physics/arcade/World.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,9 +2002,9 @@ var World = new Class({
20022002
{
20032003
bodyB = results[i];
20042004

2005-
if (bodyA === bodyB)
2005+
if (bodyA === bodyB || !group.contains(bodyB.gameObject))
20062006
{
2007-
// Skip if comparing against itself
2007+
// Skip if comparing against itself, or if bodyB isn't actually part of the Group
20082008
continue;
20092009
}
20102010

0 commit comments

Comments
 (0)