Fix Body:isTouching.

This commit is contained in:
Alex Szpakowski
2018-01-14 14:40:46 -04:00
parent 02e115c339
commit 4d5c4ef807
+1 -1
View File
@@ -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;