From eacb61e10966c048dc263604fa06619372d55b49 Mon Sep 17 00:00:00 2001 From: samme Date: Thu, 9 Jan 2020 19:45:11 -0800 Subject: [PATCH] Check for disabled body in collideSpriteVsGroup() --- src/physics/arcade/World.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics/arcade/World.js b/src/physics/arcade/World.js index ed795f03f..0185d3316 100644 --- a/src/physics/arcade/World.js +++ b/src/physics/arcade/World.js @@ -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;