--- trunk/src/primitives/GhostTorsion.cpp 2005/01/25 17:45:23 273 +++ trunk/src/primitives/GhostTorsion.cpp 2005/01/26 15:15:09 275 @@ -47,7 +47,7 @@ void GhostTorsion::calcForce() { TorsionType *tt) : Torsion(atom1, atom2, ghostAtom, ghostAtom, tt) {} void GhostTorsion::calcForce() { - DirectionalAtom* ghostAtom = static_cast(atom2_); + DirectionalAtom* ghostAtom = static_cast(atom3_); Vector3d pos1 = atom1_->getPos(); Vector3d pos2 = atom2_->getPos();