summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Items/ItemHandler.cpp')
-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;