summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 6a5800aa..7aa475d9 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -35,9 +35,6 @@ AnimatedSprite::AnimatedSprite(SpriteDef *sprite):
{
assert(mSprite);
- // Take possession of the sprite
- mSprite->incRef();
-
// Play the stand animation by default
play(SpriteAction::STAND);
}
@@ -53,10 +50,7 @@ AnimatedSprite *AnimatedSprite::load(const std::string &filename, int variant)
return as;
}
-AnimatedSprite::~AnimatedSprite()
-{
- mSprite->decRef();
-}
+AnimatedSprite::~AnimatedSprite() = default;
bool AnimatedSprite::reset()
{