diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index fa8177a9d6..972410903e 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -664,7 +664,10 @@ Ogre::Vector3 Animation::runAnimation(float duration) } if(!state.mPlaying && state.mAutoDisable) + { mStates.erase(stateiter++); + resetActiveGroups(); + } else stateiter++; }