summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 0842186fc..d60107b15 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -46,7 +46,8 @@ AnimatedSprite::AnimatedSprite(SpriteDef *const sprite):
mFrame(nullptr),
mNumber(100),
mNumber1(100),
- mDelayLoad(nullptr)
+ mDelayLoad(nullptr),
+ mTerminated(false)
{
mAlpha = 1.0f;
@@ -174,6 +175,7 @@ bool AnimatedSprite::update(const int time)
{
// Animation finished, reset to default
play(SpriteAction::STAND);
+ mTerminated = true;
}
// Make sure something actually changed