diff --git a/src/modules/physics/box2d/Body.cpp b/src/modules/physics/box2d/Body.cpp index c755357a6..959a8c615 100644 --- a/src/modules/physics/box2d/Body.cpp +++ b/src/modules/physics/box2d/Body.cpp @@ -429,7 +429,7 @@ bool Body::isTouching(Body *other) const while (ce != nullptr) { - if (ce->other == otherbody) + if (ce->other == otherbody && ce->contact != nullptr && ce->contact->IsTouching()) return true; ce = ce->next;