diff options
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 2 |
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) |