summaryrefslogtreecommitdiffstats
path: root/src/Item.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-11 22:16:08 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-11 22:16:08 +0100
commit16b27c4b7ae2ccb03355148fa7fc7116190cc5fb (patch)
treec5eb676f548fbfa770e11779bcc1380d7f16f06c /src/Item.cpp
parentMove Format issues (diff)
downloadcuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.gz
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.bz2
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.lz
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.xz
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.zst
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.zip
Diffstat (limited to '')
-rw-r--r--src/Item.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Item.cpp b/src/Item.cpp
index 61d57e763..c8dda209c 100644
--- a/src/Item.cpp
+++ b/src/Item.cpp
@@ -216,7 +216,7 @@ cItem * cItems::Get(int a_Idx)
{
if ((a_Idx < 0) || (a_Idx >= (int)size()))
{
- LOGWARNING("cItems: Attempt to get an out-of-bounds item at index %d; there are currently %d items. Returning a nil.", a_Idx, size());
+ LOGWARNING("cItems: Attempt to get an out-of-bounds item at index %d; there are currently %zu items. Returning a nil.", a_Idx, size());
return NULL;
}
return &at(a_Idx);
@@ -230,7 +230,7 @@ void cItems::Set(int a_Idx, const cItem & a_Item)
{
if ((a_Idx < 0) || (a_Idx >= (int)size()))
{
- LOGWARNING("cItems: Attempt to set an item at an out-of-bounds index %d; there are currently %d items. Not setting.", a_Idx, size());
+ LOGWARNING("cItems: Attempt to set an item at an out-of-bounds index %d; there are currently %zu items. Not setting.", a_Idx, size());
return;
}
at(a_Idx) = a_Item;
@@ -244,7 +244,7 @@ void cItems::Delete(int a_Idx)
{
if ((a_Idx < 0) || (a_Idx >= (int)size()))
{
- LOGWARNING("cItems: Attempt to delete an item at an out-of-bounds index %d; there are currently %d items. Ignoring.", a_Idx, size());
+ LOGWARNING("cItems: Attempt to delete an item at an out-of-bounds index %d; there are currently %zu items. Ignoring.", a_Idx, size());
return;
}
erase(begin() + a_Idx);
@@ -258,7 +258,7 @@ void cItems::Set(int a_Idx, short a_ItemType, char a_ItemCount, short a_ItemDama
{
if ((a_Idx < 0) || (a_Idx >= (int)size()))
{
- LOGWARNING("cItems: Attempt to set an item at an out-of-bounds index %d; there are currently %d items. Not setting.", a_Idx, size());
+ LOGWARNING("cItems: Attempt to set an item at an out-of-bounds index %d; there are currently %zu items. Not setting.", a_Idx, size());
return;
}
at(a_Idx) = cItem(a_ItemType, a_ItemCount, a_ItemDamage);