diff options
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 8bc324535..0842186fc 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -88,6 +88,13 @@ AnimatedSprite *AnimatedSprite::delayedLoad(const std::string &filename, return as; } +AnimatedSprite *AnimatedSprite::clone(const AnimatedSprite *const anim) +{ + if (!anim) + return nullptr; + return new AnimatedSprite(anim->mSprite); +} + AnimatedSprite::~AnimatedSprite() { if (mSprite) |