mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-30 23:26:44 +00:00 
			
		
		
		
	Fix RayCastingResult warning
This commit is contained in:
		
							parent
							
								
									bbcfcc8823
								
							
						
					
					
						commit
						ec825b2510
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -265,7 +265,11 @@ namespace MWPhysics | ||||||
|     RayCastingResult PhysicsSystem::castRay(const osg::Vec3f &from, const osg::Vec3f &to, const MWWorld::ConstPtr& ignore, std::vector<MWWorld::Ptr> targets, int mask, int group) const |     RayCastingResult PhysicsSystem::castRay(const osg::Vec3f &from, const osg::Vec3f &to, const MWWorld::ConstPtr& ignore, std::vector<MWWorld::Ptr> targets, int mask, int group) const | ||||||
|     { |     { | ||||||
|         if (from == to) |         if (from == to) | ||||||
|             return RayCastingResult { false }; |         { | ||||||
|  |             RayCastingResult result; | ||||||
|  |             result.mHit = false; | ||||||
|  |             return result; | ||||||
|  |         } | ||||||
|         btVector3 btFrom = Misc::Convert::toBullet(from); |         btVector3 btFrom = Misc::Convert::toBullet(from); | ||||||
|         btVector3 btTo = Misc::Convert::toBullet(to); |         btVector3 btTo = Misc::Convert::toBullet(to); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue