Dave Schuyler il y a 22 ans
Parent
commit
f7e417c6d5
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      panda/src/physics/forceNode.cxx

+ 3 - 3
panda/src/physics/forceNode.cxx

@@ -28,8 +28,7 @@ TypeHandle ForceNode::_type_handle;
 ////////////////////////////////////////////////////////////////////
 ForceNode::
 ForceNode(const string &name) :
-  PandaNode(name) 
-{
+  PandaNode(name) {
 }
 
 ////////////////////////////////////////////////////////////////////
@@ -73,8 +72,9 @@ add_forces_from(const ForceNode &other) {
   _forces.insert(_forces.end(),
                  other._forces.begin(), other._forces.end());
 
-  for (; last != _forces.end(); last++)
+  for (; last != _forces.end(); last++) {
     (*last)->_force_node = this;
+  }
 }
 
 ////////////////////////////////////////////////////////////////////