Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit b603398

Browse files
authored
Merge pull request #394 from cortex-command-community/cf-393-add-atomgroup-assertion
Added assertion for a defined AtomGroup in `MOSRotating::Travel()`.
2 parents 0938304 + 1a0aac7 commit b603398

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Entities/MOSRotating.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,8 @@ void MOSRotating::Travel()
14121412
// Reset the travel impulse for this frame
14131413
m_TravelImpulse.Reset();
14141414

1415+
RTEAssert(m_pAtomGroup, "No AtomGroup defined for MOSRotating " + GetPresetName() + " in Travel!");
1416+
14151417
// Set the atom to ignore a certain MO, if set and applicable.
14161418
if (m_HitsMOs && m_pMOToNotHit && g_MovableMan.ValidMO(m_pMOToNotHit) && !m_MOIgnoreTimer.IsPastSimTimeLimit()) {
14171419
std::vector<MOID> MOIDsNotToHit;

0 commit comments

Comments
 (0)