From 0b37949f2afcb795eeb0681ba196abc73c008ffd Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 21 Jan 2013 09:07:18 +0000 Subject: 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 --- source/Items/ItemHandler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source') 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; } -- cgit v1.2.3