Browse Source

bullet: Fix `BulletAllHitsRayResult::empty()` compiler warning

rdb 3 years ago
parent
commit
693b4d3fb3
1 changed files with 1 additions and 4 deletions
  1. 1 4
      panda/src/bullet/bulletAllHitsRayResult.I

+ 1 - 4
panda/src/bullet/bulletAllHitsRayResult.I

@@ -18,10 +18,7 @@
 INLINE BulletAllHitsRayResult BulletAllHitsRayResult::
 empty() {
 
-  btVector3 from;
-  btVector3 to;
-
-  return BulletAllHitsRayResult(from, to, CollideMask::all_on());
+  return BulletAllHitsRayResult(btVector3(0, 0, 0), btVector3(0, 0, 0), CollideMask::all_on());
 }
 
 /**