diff --git a/src/engine.cpp b/src/engine.cpp index f1e5067..5205978 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -352,7 +352,7 @@ namespace ijengine case ONE_TO_ALL: for (auto obj : objects) { - if (obj == target or not target->active()) + if (obj == target or not target->active() or not obj->active()) continue; auto r = collision(target, obj);