From 693b4d3fb386f6cbebe04d30665b6cba460ebc42 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 25 Oct 2022 12:08:38 +0200 Subject: [PATCH] bullet: Fix `BulletAllHitsRayResult::empty()` compiler warning --- panda/src/bullet/bulletAllHitsRayResult.I | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/panda/src/bullet/bulletAllHitsRayResult.I b/panda/src/bullet/bulletAllHitsRayResult.I index d2da8644b5..e8ad767b16 100644 --- a/panda/src/bullet/bulletAllHitsRayResult.I +++ b/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()); } /**