diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-02 21:17:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-02 21:17:53 +0300 |
commit | bfa44d6b007ca2e3ffabafda5beadbf102a6efdc (patch) | |
tree | 8f5d51f3ac6486f42aa531032209a0dddcc6e45d /src/resources/resourcemanager.cpp | |
parent | 181ecd0c3bf27b47487f973fb83b988fd6ceaecf (diff) | |
download | manaplus-bfa44d6b007ca2e3ffabafda5beadbf102a6efdc.tar.gz manaplus-bfa44d6b007ca2e3ffabafda5beadbf102a6efdc.tar.bz2 manaplus-bfa44d6b007ca2e3ffabafda5beadbf102a6efdc.tar.xz manaplus-bfa44d6b007ca2e3ffabafda5beadbf102a6efdc.zip |
Other fixes from Coverity checks.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 7759fdb73..e8e9f14c1 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -238,15 +238,8 @@ void ResourceManager::logResource(const Resource *const res) const int count = image->getRefCount(); if (count) src.append(" ").append(toString(count)); - if (image) - { - logger->log("resource(%s, %u) %s", res->mIdPath.c_str(), - image->getGLImage(), src.c_str()); - } - else - { - logger->log("resource(%s) %s", res->mIdPath.c_str(), src.c_str()); - } + logger->log("resource(%s, %u) %s", res->mIdPath.c_str(), + image->getGLImage(), src.c_str()); } else { |