DEMO:Slice.c: SliceQuery(...) has not the correct parameters

Discuss any Chipmunk bugs here.

DEMO:Slice.c: SliceQuery(...) has not the correct parameters

Postby aisman » Wed Jan 14, 2015 2:34 am

Downloaded the latest Chipmunk2D 7 source today (14.01.2015).

Compiled it on VS2013
Start demo => slice is chrashing

Reason: SliceQuery(...) has not the correct parameters.
wrong:
Code: Select all
SliceQuery(cpShape *shape, cpFloat t, cpVect n, struct SliceContext *context)

correct:
Code: Select all
SliceQuery(cpShape *shape, cpVect n, cpVect m, cpFloat t, struct SliceContext *context)

Slice works with this changed line on MS Windows.
Chipmunk4PB: The fastest way to write games together with PureBasic and the Chipmunk physics engine.
User avatar
aisman
 
Posts: 140
Joined: Tue Mar 04, 2008 2:21 am

Re: DEMO:Slice.c: SliceQuery(...) has not the correct parame

Postby AndyKorth » Thu Jan 15, 2015 2:31 pm

Thanks for the report! I guess since those parameters aren't used in the function, it compiles okay on other platforms.

I've made the fix and pushed it to github. Thanks again!
User avatar
AndyKorth
Site Admin
 
Posts: 36
Joined: Wed Aug 15, 2007 3:56 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests