diff options
author | madmaxoft <github@xoft.cz> | 2014-08-09 14:25:49 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-08-09 14:25:49 +0200 |
commit | 4b1505f39d6a77b0fd389d1170a1dcc901f602cd (patch) | |
tree | 036067995500e4d770eeecbf3e3b9b791d604bb5 /src/Items | |
parent | Debuggers: Simple cRankManager test case. (diff) | |
parent | Merge pull request #1295 from mc-server/crystal (diff) | |
download | cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.gz cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.bz2 cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.lz cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.xz cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.zst cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.zip |
Diffstat (limited to '')
-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) |