--- branches/development/src/nonbonded/MAW.cpp 2011/05/27 16:45:44 1571 +++ branches/development/src/nonbonded/MAW.cpp 2011/06/14 20:41:44 1582 @@ -221,7 +221,7 @@ namespace OpenMD { RealType pot_temp = *(idat.vdwMult) * Vmorse * Vang; *(idat.vpair) += pot_temp; - idat.pot[VANDERWAALS_FAMILY] += *(idat.sw) * pot_temp; + (*(idat.pot))[VANDERWAALS_FAMILY] += *(idat.sw) * pot_temp; Vector3d dVmorsedr = (myDeriv - myDerivC) * Vector3d(x, y, z) / *(idat.rij) ;