From 2eba488b67413f4a713d5313fd654ec6a4d463f6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jun 2012 23:42:20 +0300 Subject: Add missing check to animated sprite class. --- src/animatedsprite.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2