Browse Source

Fixed setFixedRotation enabling other flags (bug #190)

Bill Meltsner 15 years ago
parent
commit
c64e034320
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/physics/box2d/Body.cpp

+ 1 - 1
src/modules/physics/box2d/Body.cpp

@@ -296,7 +296,7 @@ namespace box2d
 		if(fixed)
 			body->m_flags |= b2Body::e_fixedRotationFlag;
 		else
-			body->m_flags |= ~(b2Body::e_fixedRotationFlag);
+			body->m_flags &= ~(b2Body::e_fixedRotationFlag);
 	}
 
 	bool Body::getFixedRotation() const