Browse Source

Bugfix: Fix a compile error on Linux

BearishSun 8 years ago
parent
commit
d6526e1e7d
1 changed files with 1 additions and 1 deletions
  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;
 		Quaternion mCMassRotation = Quaternion::IDENTITY;
 		Vector3 mInertiaTensor = Vector3::ZERO;
 		Vector3 mInertiaTensor = Vector3::ZERO;
 		float mMass = 0.0f;
 		float mMass = 0.0f;
-		float mMaxAngularVelocity = FLT_MAX;
+		float mMaxAngularVelocity = std::numeric_limits<float>::max();
 		float mLinearDrag = 0.0f;
 		float mLinearDrag = 0.0f;
 		float mAngularDrag = 0.0f;
 		float mAngularDrag = 0.0f;
 		float mSleepThreshold = 0.0f;
 		float mSleepThreshold = 0.0f;