Explorar el Código

Bugfix: Fix a compile error on Linux

BearishSun hace 8 años
padre
commit
d6526e1e7d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Source/BansheeCore/Components/BsCRigidbody.h

+ 1 - 1
Source/BansheeCore/Components/BsCRigidbody.h

@@ -292,7 +292,7 @@ namespace bs
 		Quaternion mCMassRotation = Quaternion::IDENTITY;
 		Vector3 mInertiaTensor = Vector3::ZERO;
 		float mMass = 0.0f;
-		float mMaxAngularVelocity = FLT_MAX;
+		float mMaxAngularVelocity = std::numeric_limits<float>::max();
 		float mLinearDrag = 0.0f;
 		float mAngularDrag = 0.0f;
 		float mSleepThreshold = 0.0f;