summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-24 18:41:42 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-25 22:08:24 +0300
commitd49a520d19f28c613c68b574686b182a9c0621be (patch)
tree5b6943125fd364eaaaaa295b45100cdfc473dd93 /src/resources/imagehelper.cpp
parent14f55eb8c6e44763e70046b9661bd056280226a5 (diff)
downloadmv-d49a520d19f28c613c68b574686b182a9c0621be.tar.gz
mv-d49a520d19f28c613c68b574686b182a9c0621be.tar.bz2
mv-d49a520d19f28c613c68b574686b182a9c0621be.tar.xz
mv-d49a520d19f28c613c68b574686b182a9c0621be.zip
Add missing checks into resources directory.
Diffstat (limited to 'src/resources/imagehelper.cpp')
-rw-r--r--src/resources/imagehelper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/imagehelper.cpp b/src/resources/imagehelper.cpp
index 20697cfd6..e49a738f2 100644
--- a/src/resources/imagehelper.cpp
+++ b/src/resources/imagehelper.cpp
@@ -163,6 +163,8 @@ SDL_Surface* ImageHelper::convertTo32Bit(SDL_Surface *const tmpImage)
void ImageHelper::dumpSurfaceFormat(const SDL_Surface *const image)
{
+ if (!image)
+ return;
if (image->format)
{
const SDL_PixelFormat * const format = image->format;