summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-17 12:32:46 +0200
committerMattes D <github@xoft.cz>2015-04-20 08:34:44 +0200
commitc9fbcea66d24e0642fc6b285b24681b63281a4b3 (patch)
treea778fb0f7f834c0e495fd1598337f99e88e2b55a /src/Items
parentUpdated the Core plugin. (diff)
downloadcuberite-c9fbcea66d24e0642fc6b285b24681b63281a4b3.tar
cuberite-c9fbcea66d24e0642fc6b285b24681b63281a4b3.tar.gz
cuberite-c9fbcea66d24e0642fc6b285b24681b63281a4b3.tar.bz2
cuberite-c9fbcea66d24e0642fc6b285b24681b63281a4b3.tar.lz
cuberite-c9fbcea66d24e0642fc6b285b24681b63281a4b3.tar.xz
cuberite-c9fbcea66d24e0642fc6b285b24681b63281a4b3.tar.zst
cuberite-c9fbcea66d24e0642fc6b285b24681b63281a4b3.zip
Diffstat (limited to 'src/Items')
-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 f38e2a3e3..d61c883b2 100644
--- a/src/Items/ItemHandler.cpp
+++ b/src/Items/ItemHandler.cpp
@@ -287,7 +287,7 @@ cItemHandler * cItemHandler::CreateItemHandler(int a_ItemType)
void cItemHandler::Deinit()
{
- for (int i = 0; i < 2267; i++)
+ for (int i = 0; i < ARRAYCOUNT(m_ItemHandler); i++)
{
delete m_ItemHandler[i];
m_ItemHandler[i] = nullptr;