diff options
author | archshift <admin@archshift.com> | 2014-08-05 04:43:33 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-08-05 04:43:33 +0200 |
commit | d2d0ffee21d10aace8caa20a002daa1c887c1f39 (patch) | |
tree | d940c4c2f6092cc85fd51d520e5b22cb966e07f3 /src | |
parent | MojangAPI: Fixed PlayerNameToUUID(). (diff) | |
download | cuberite-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 'src')
-rw-r--r-- | src/Items/ItemHandler.cpp | 2 |
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) |