diff options
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 3ea400ac..02acc8be 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -214,7 +214,10 @@ AnimatedSprite::substituteAction(SpriteAction complete, { if (mActions.find(complete) == mActions.end()) { - mActions[complete] = mActions[with]; + ActionIterator i = mActions.find(with); + if (i != mActions.end()) { + mActions[complete] = i->second; + } } } |