Check for disabled body in collideSpriteVsGroup()

This commit is contained in:
samme 2020-01-09 19:45:11 -08:00
parent d63001d719
commit eacb61e109

View file

@ -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;