diff --git a/panda/src/physics/forceNode.cxx b/panda/src/physics/forceNode.cxx index d6d9fd2fad..a803453152 100644 --- a/panda/src/physics/forceNode.cxx +++ b/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; + } } ////////////////////////////////////////////////////////////////////