Fixed a possible crash on server restart.
May be related to FS #294 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1161 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
bb36b8d511
commit
0b37949f2a
@ -187,6 +187,7 @@ void cItemHandler::Deinit()
|
|||||||
{
|
{
|
||||||
delete m_ItemHandler[i];
|
delete m_ItemHandler[i];
|
||||||
}
|
}
|
||||||
|
memset(m_ItemHandler, 0, sizeof(m_ItemHandler)); // Don't leave any dangling pointers around, just in case
|
||||||
m_HandlerInitialized = false;
|
m_HandlerInitialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user