--- branches/development/src/nonbonded/Sticky.cpp 2011/05/27 16:45:44 1571 +++ branches/development/src/nonbonded/Sticky.cpp 2011/06/14 20:41:44 1582 @@ -343,7 +343,7 @@ namespace OpenMD { } *(idat.vpair) += 0.5*(v0*s*w + v0p*sp*wp); - idat.pot[HYDROGENBONDING_FAMILY] += 0.5*(v0*s*w + v0p*sp*wp)* *(idat.sw) ; + (*(idat.pot))[HYDROGENBONDING_FAMILY] += 0.5*(v0*s*w + v0p*sp*wp)* *(idat.sw) ; // do the torques first since they are easy: // remember that these are still in the body-fixed axes