diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-26 00:41:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-26 00:41:35 +0300 |
commit | 5344dc6cd9156a9b67da834c9b5b4be00a62992a (patch) | |
tree | e71a20fbc231ccec6e53a718758eea447cfc7069 /src/simpleanimation.cpp | |
parent | 02822f84a25b261f02f5928a6cbefe103cd9491e (diff) | |
download | mv-5344dc6cd9156a9b67da834c9b5b4be00a62992a.tar.gz mv-5344dc6cd9156a9b67da834c9b5b4be00a62992a.tar.bz2 mv-5344dc6cd9156a9b67da834c9b5b4be00a62992a.tar.xz mv-5344dc6cd9156a9b67da834c9b5b4be00a62992a.zip |
Add missing checks into other files.
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r-- | src/simpleanimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp index 6341f04e1..2943d5d92 100644 --- a/src/simpleanimation.cpp +++ b/src/simpleanimation.cpp @@ -39,7 +39,7 @@ SimpleAnimation::SimpleAnimation(Animation *const animation) : mAnimation(animation), mAnimationTime(0), mAnimationPhase(0), - mCurrentFrame(&mAnimation->mFrames[0]), + mCurrentFrame(mAnimation ? &mAnimation->mFrames[0] : nullptr), mInitialized(true), mImageSet(nullptr) { |