1
0

ItemHandler: Using automatic array bounds.

This commit is contained in:
Mattes D 2015-04-17 12:32:46 +02:00
parent e5e581043f
commit c9fbcea66d

View File

@ -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;