diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-07-25 21:36:37 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-07-25 21:36:37 +0000 |
commit | e6d8d2dd8eff63c23f0ffad25c5e2529bde93485 (patch) | |
tree | cce9c591350ce1d29c67df3339c526b182e8763e /src/resources/resourcemanager.cpp | |
parent | 33e19fb0822308a630ca6e1122b9b97882a120a7 (diff) | |
download | mana-e6d8d2dd8eff63c23f0ffad25c5e2529bde93485.tar.gz mana-e6d8d2dd8eff63c23f0ffad25c5e2529bde93485.tar.bz2 mana-e6d8d2dd8eff63c23f0ffad25c5e2529bde93485.tar.xz mana-e6d8d2dd8eff63c23f0ffad25c5e2529bde93485.zip |
Added support for writing log to standard output.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 26899d77..6353afac 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -72,7 +72,10 @@ void ResourceManager::cleanUp(Resource *res) { logger->log("ResourceManager::~ResourceManager() cleaning up %d " - "references to %s", res->mRefCount, res->mIdPath.c_str()); + "reference%s to %s", + res->mRefCount, + (res->mRefCount == 1) ? "" : "s", + res->mIdPath.c_str()); delete res; } |