Skip to content

Commit

Permalink
fix assert (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto authored Dec 13, 2023
1 parent b3a87aa commit b5994ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ static void b2SolveGraph(b2World* world, b2StepContext* stepContext)

awakeBodies[index] = body;

B2_ASSERT(0 < bodyIndex && bodyIndex < bodyCapacity);
B2_ASSERT(0 <= bodyIndex && bodyIndex < bodyCapacity);
bodyToSolverMap[bodyIndex] = index;
solverToBodyMap[index] = bodyIndex;

Expand Down

0 comments on commit b5994ad

Please sign in to comment.