diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/draci/animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp index 4012719add..48d3246a8e 100644 --- a/engines/draci/animation.cpp +++ b/engines/draci/animation.cpp @@ -406,11 +406,11 @@ void AnimationManager::deleteAnimation(Animation *anim) { // Remember index of the deleted animation index = (*it)->getIndex(); + debugC(3, kDraciAnimationDebugLevel, "Deleting animation %d...", anim->getID()); + delete *it; _animations.erase(it); - debugC(3, kDraciAnimationDebugLevel, "Deleting animation %d...", anim->getID()); - break; } } |