diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-25 23:42:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-25 23:42:20 +0300 |
commit | 2eba488b67413f4a713d5313fd654ec6a4d463f6 (patch) | |
tree | 8f99a9d15b8b95bba6ae224059e3e32d917653f3 /src/animatedsprite.cpp | |
parent | 60757643df53ff5d9d6aa361486348bc6d4bf0f2 (diff) | |
download | plus-2eba488b67413f4a713d5313fd654ec6a4d463f6.tar.gz plus-2eba488b67413f4a713d5313fd654ec6a4d463f6.tar.bz2 plus-2eba488b67413f4a713d5313fd654ec6a4d463f6.tar.xz plus-2eba488b67413f4a713d5313fd654ec6a4d463f6.zip |
Add missing check to animated sprite class.
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 4 |
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; |