summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 0b9eb5ddd..41aabf60c 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -306,3 +306,14 @@ void AnimatedSprite::setAlpha(float alpha)
if (mFrame && mFrame->image && mFrame->image->getAlpha() != mAlpha)
mFrame->image->setAlpha(mAlpha);
}
+
+void *AnimatedSprite::getHash()
+{
+ if (mFrame)
+ return mFrame;
+// if (mFrame && mFrame->image)
+// return mFrame->image;
+// if (mAnimation)
+// return mAnimation;
+ return this;
+}