From ec825b2510131d747b143e15cda4a2ca25d0824f Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Thu, 8 Oct 2020 22:44:46 +0300 Subject: [PATCH] Fix RayCastingResult warning --- apps/openmw/mwphysics/physicssystem.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwphysics/physicssystem.cpp b/apps/openmw/mwphysics/physicssystem.cpp index 8b07fea4b..07859c1e2 100644 --- a/apps/openmw/mwphysics/physicssystem.cpp +++ b/apps/openmw/mwphysics/physicssystem.cpp @@ -265,7 +265,11 @@ namespace MWPhysics RayCastingResult PhysicsSystem::castRay(const osg::Vec3f &from, const osg::Vec3f &to, const MWWorld::ConstPtr& ignore, std::vector targets, int mask, int group) const { if (from == to) - return RayCastingResult { false }; + { + RayCastingResult result; + result.mHit = false; + return result; + } btVector3 btFrom = Misc::Convert::toBullet(from); btVector3 btTo = Misc::Convert::toBullet(to);