summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.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/resourcemanager.cpp
parent14f55eb8c6e44763e70046b9661bd056280226a5 (diff)
downloadmanaplus-d49a520d19f28c613c68b574686b182a9c0621be.tar.gz
manaplus-d49a520d19f28c613c68b574686b182a9c0621be.tar.bz2
manaplus-d49a520d19f28c613c68b574686b182a9c0621be.tar.xz
manaplus-d49a520d19f28c613c68b574686b182a9c0621be.zip
Add missing checks into resources directory.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 9985ec67d..9d1f9de1e 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -260,6 +260,8 @@ bool ResourceManager::cleanOrphans(const bool always)
void ResourceManager::logResource(const Resource *const res)
{
+ if (!res)
+ return;
#ifdef USE_OPENGL
const Image *const image = dynamic_cast<const Image *const>(res);
if (image)