summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/animatedsprite.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 77ec69126..573c2ebc5 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -360,6 +360,10 @@ void *AnimatedSprite::getHash()
bool AnimatedSprite::updateNumber(unsigned num)
{
+ // TODO need store num in delayed object if it exist for future usage
+ if (!mSprite)
+ return false;
+
if (mNumber1 != num)
{
mNumber1 = num;