mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix Body:isTouching.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user