ItemHandler: Using automatic array bounds.
This commit is contained in:
parent
e5e581043f
commit
c9fbcea66d
@ -287,7 +287,7 @@ cItemHandler * cItemHandler::CreateItemHandler(int a_ItemType)
|
|||||||
|
|
||||||
void cItemHandler::Deinit()
|
void cItemHandler::Deinit()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 2267; i++)
|
for (int i = 0; i < ARRAYCOUNT(m_ItemHandler); i++)
|
||||||
{
|
{
|
||||||
delete m_ItemHandler[i];
|
delete m_ItemHandler[i];
|
||||||
m_ItemHandler[i] = nullptr;
|
m_ItemHandler[i] = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user