summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-21 10:07:18 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-21 10:07:18 +0100
commit0b37949f2afcb795eeb0681ba196abc73c008ffd (patch)
treeb250d3a35cb2a7a6a3103e2059f5c2db8258f320 /source
parentFixed piston placement. (diff)
downloadcuberite-0b37949f2afcb795eeb0681ba196abc73c008ffd.tar
cuberite-0b37949f2afcb795eeb0681ba196abc73c008ffd.tar.gz
cuberite-0b37949f2afcb795eeb0681ba196abc73c008ffd.tar.bz2
cuberite-0b37949f2afcb795eeb0681ba196abc73c008ffd.tar.lz
cuberite-0b37949f2afcb795eeb0681ba196abc73c008ffd.tar.xz
cuberite-0b37949f2afcb795eeb0681ba196abc73c008ffd.tar.zst
cuberite-0b37949f2afcb795eeb0681ba196abc73c008ffd.zip
Diffstat (limited to 'source')
-rw-r--r--source/Items/ItemHandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/Items/ItemHandler.cpp b/source/Items/ItemHandler.cpp
index 1200fa27a..eaac6ba3c 100644
--- a/source/Items/ItemHandler.cpp
+++ b/source/Items/ItemHandler.cpp
@@ -187,6 +187,7 @@ void cItemHandler::Deinit()
{
delete m_ItemHandler[i];
}
+ memset(m_ItemHandler, 0, sizeof(m_ItemHandler)); // Don't leave any dangling pointers around, just in case
m_HandlerInitialized = false;
}