summaryrefslogtreecommitdiff
path: root/src/resources/imageset.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-29 12:58:21 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-29 12:58:21 +0000
commit396c966cd2b3af2dbdb5b157e9ebb2e576b677b0 (patch)
treeee5c819fb7fae346ec982a8c34d642975de31aee /src/resources/imageset.cpp
parent94d849ad87bd53c6c51530ea7c0b084ca6899533 (diff)
downloadmana-396c966cd2b3af2dbdb5b157e9ebb2e576b677b0.tar.gz
mana-396c966cd2b3af2dbdb5b157e9ebb2e576b677b0.tar.bz2
mana-396c966cd2b3af2dbdb5b157e9ebb2e576b677b0.tar.xz
mana-396c966cd2b3af2dbdb5b157e9ebb2e576b677b0.zip
When compiling with GCC, use the printf format attribute for the log method so
that the compiler checks the type of its parameters.
Diffstat (limited to 'src/resources/imageset.cpp')
-rw-r--r--src/resources/imageset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/imageset.cpp b/src/resources/imageset.cpp
index 08a6a110..4b6dd592 100644
--- a/src/resources/imageset.cpp
+++ b/src/resources/imageset.cpp
@@ -54,7 +54,7 @@ ImageSet::get(size_type i)
{
if (i >= mImages.size())
{
- logger->log("Warning: Sprite #%i does not exist in this image set", i);
+ logger->log("Warning: No sprite %d in this image set", (int) i);
return NULL;
}
else