summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-25 23:42:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-25 23:42:20 +0300
commit2eba488b67413f4a713d5313fd654ec6a4d463f6 (patch)
tree8f99a9d15b8b95bba6ae224059e3e32d917653f3 /src
parent60757643df53ff5d9d6aa361486348bc6d4bf0f2 (diff)
downloadmanaplus-2eba488b67413f4a713d5313fd654ec6a4d463f6.tar.gz
manaplus-2eba488b67413f4a713d5313fd654ec6a4d463f6.tar.bz2
manaplus-2eba488b67413f4a713d5313fd654ec6a4d463f6.tar.xz
manaplus-2eba488b67413f4a713d5313fd654ec6a4d463f6.zip
Add missing check to animated sprite class.
Diffstat (limited to 'src')
-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;