Ver Fonte

fix occasional crash with code compiled with gcc

David Rose há 21 anos atrás
pai
commit
b9009141e1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      panda/src/collide/collisionPolygon.I

+ 1 - 1
panda/src/collide/collisionPolygon.I

@@ -183,7 +183,7 @@ PointDef(const LPoint2f &p, const LVector2f &v) : _p(p), _v(v) {
 //  Description: 
 ////////////////////////////////////////////////////////////////////
 INLINE CollisionPolygon::PointDef::
-PointDef(float x, float y) : _p(x, y) {
+PointDef(float x, float y) : _p(x, y), _v(0.0f, 0.0f) {
 }
 
 ////////////////////////////////////////////////////////////////////