--- trunk/src/io/DumpReader.cpp 2013/07/02 20:02:31 1896 +++ trunk/src/io/DumpReader.cpp 2013/07/03 20:21:00 1897 @@ -560,8 +560,11 @@ namespace OpenMD { if (i >> siteIndex) { // chew up this token and parse as an int: siteIndex = tokenizer.nextTokenAsInt(); - RigidBody* rb = static_cast(sd); - sd = rb->getAtoms()[siteIndex]; + + if (sd->isRigidBody()) { + RigidBody* rb = static_cast(sd); + sd = rb->getAtoms()[siteIndex]; + } } /**