1. pygame
  2. pygame
  3. pygame

Commits

minz  committed bc47bfc

Solve a bug of distance joint

  • Participants
  • Parent commits 748504c
  • Branches physics

Comments (0)

Files changed (1)

File src/pgJointObject.c

View file
  • Ignore whitespace
 
 pgJointObject* PG_DistanceJointNew(pgBodyObject* b1,pgBodyObject* b2,int bCollideConnect,double dist,pgVector2 a1,pgVector2 a2)
 {
-	pgDistanceJoint* pjoint = (pgDistanceJoint*)PyObject_MALLOC(sizeof(pgJointObject));
+	pgDistanceJoint* pjoint = (pgDistanceJoint*)PyObject_MALLOC(sizeof(pgDistanceJoint));
 	PG_InitJointBase(&(pjoint->joint), b1, b2, bCollideConnect);
 	pjoint->distance = dist;
 	pjoint->anchor1 = a1;