# | Line 560 | Line 560 | namespace OpenMD { | |
---|---|---|
560 | if (i >> siteIndex) { | |
561 | // chew up this token and parse as an int: | |
562 | siteIndex = tokenizer.nextTokenAsInt(); | |
563 | < | RigidBody* rb = static_cast<RigidBody*>(sd); |
564 | < | sd = rb->getAtoms()[siteIndex]; |
563 | > | |
564 | > | if (sd->isRigidBody()) { |
565 | > | RigidBody* rb = static_cast<RigidBody*>(sd); |
566 | > | sd = rb->getAtoms()[siteIndex]; |
567 | > | } |
568 | } | |
569 | ||
570 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |