I was testing out my program on the iPhone and I get this error in the debugger. (It is fine on the simulator because you can't simulate multiple touches)
Assertion failed: (cpArrayContains(space->bodies, body)), function cpSpaceRemoveBody, file .../Chipmunk/src/cpSpace.c, line 318.
Program received signal: “SIGABRT”.
Seems to occur when I tap one finger down and then tap another down quickly. Program freezes and quits. I am using the cpMouse to handle input requests.
The error is with this function:
void cpSpaceRemoveBody(cpSpace *space, cpBody *body) {
assert(cpArrayContains(space->bodies, body));
cpArrayDeleteObj(space->bodies, body);
}
Does it have something to do with removing the pointers and adding them too quickly that they mess up? Any suggestions for a fix? I'm still playing around with it.
