Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box2D b2Island::Solve() EXC_BAD_ACCESS #301

Open
CoffeeBreakin opened this issue Sep 12, 2017 · 0 comments
Open

Box2D b2Island::Solve() EXC_BAD_ACCESS #301

CoffeeBreakin opened this issue Sep 12, 2017 · 0 comments

Comments

@CoffeeBreakin
Copy link

I found a careless mistake.

void b2Island::Solve(b2Profile* profile, const b2TimeStep& step, const b2Vec2& gravity, bool allowSleep)
{
...
for (int32 j = 0; j < m_jointCount; ++j)
{
bool jointOkay = m_joints[i]->SolvePositionConstraints(solverData);
jointsOkay = jointsOkay && jointOkay;
}
...

m_joints[i] ---> m_joints[j]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant