summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp7
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)