summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemHandler.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-08-05 04:43:33 +0200
committerarchshift <admin@archshift.com>2014-08-05 04:43:33 +0200
commitd2d0ffee21d10aace8caa20a002daa1c887c1f39 (patch)
treed940c4c2f6092cc85fd51d520e5b22cb966e07f3 /src/Items/ItemHandler.cpp
parentMojangAPI: Fixed PlayerNameToUUID(). (diff)
downloadcuberite-d2d0ffee21d10aace8caa20a002daa1c887c1f39.tar
cuberite-d2d0ffee21d10aace8caa20a002daa1c887c1f39.tar.gz
cuberite-d2d0ffee21d10aace8caa20a002daa1c887c1f39.tar.bz2
cuberite-d2d0ffee21d10aace8caa20a002daa1c887c1f39.tar.lz
cuberite-d2d0ffee21d10aace8caa20a002daa1c887c1f39.tar.xz
cuberite-d2d0ffee21d10aace8caa20a002daa1c887c1f39.tar.zst
cuberite-d2d0ffee21d10aace8caa20a002daa1c887c1f39.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Items/ItemHandler.cpp b/src/Items/ItemHandler.cpp
index 1c1e3b5b9..bceedaf69 100644
--- a/src/Items/ItemHandler.cpp
+++ b/src/Items/ItemHandler.cpp
@@ -66,7 +66,7 @@ cItemHandler * cItemHandler::m_ItemHandler[2268];
cItemHandler * cItemHandler::GetItemHandler(int a_ItemType)
{
- if ((a_ItemType < 0) || ((unsigned long)a_ItemType >= ARRAYCOUNT(m_ItemHandler)))
+ if ((a_ItemType < 0) || ((size_t)a_ItemType >= ARRAYCOUNT(m_ItemHandler)))
{
// Either nothing (-1), or bad value, both cases should return the air handler
if (a_ItemType < -1)