Skip to content

Commit 8b9819b

Browse files
authored
Merge pull request phaserjs#4949 from samme/fix/collideSpriteVsSprite
Check for disabled body in collideSpriteVsGroup()
2 parents 5da15fc + eacb61e commit 8b9819b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/physics/arcade/World.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ var World = new Class({
19481948
{
19491949
bodyB = results[i];
19501950

1951-
if (bodyA === bodyB || !group.contains(bodyB.gameObject))
1951+
if (bodyA === bodyB || !bodyB.enable || !group.contains(bodyB.gameObject))
19521952
{
19531953
// Skip if comparing against itself, or if bodyB isn't actually part of the Group
19541954
continue;

0 commit comments

Comments
 (0)