Skip to content

Commit c47058a

Browse files
committed
EPA: remove useless nullptr check
By this point, `stock.root` is always `nullptr`.
1 parent 8a728d5 commit c47058a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/narrowphase/gjk.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ EPA::SimplexFace* EPA::newFace(SimplexVertex* a, SimplexVertex* b,
15511551
return nullptr;
15521552
}
15531553

1554-
status = stock.root ? OutOfVertices : OutOfFaces;
1554+
status = OutOfFaces;
15551555
return nullptr;
15561556
}
15571557

0 commit comments

Comments
 (0)