From eaa17b6a84d19e605549d6d1ea94eede98f77c67 Mon Sep 17 00:00:00 2001 From: faketruth Date: Tue, 14 Feb 2012 12:23:02 +0000 Subject: Fixed a (pretty big) memory leak in cSandSimulator git-svn-id: http://mc-server.googlecode.com/svn/trunk@252 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSandSimulator.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/cSandSimulator.h') diff --git a/source/cSandSimulator.h b/source/cSandSimulator.h index 113a2492b..0a38172e8 100644 --- a/source/cSandSimulator.h +++ b/source/cSandSimulator.h @@ -2,8 +2,8 @@ #include "cSimulator.h" #include "cBlockEntity.h" #include +#include "Vector3i.h" -class Vector3i; class cWorld; class cSandSimulator : public cSimulator { @@ -20,6 +20,7 @@ public: protected: virtual void AddBlock(int a_X, int a_Y, int a_Z); - std::list *m_Blocks; - std::list *m_Buffer; + typedef std::list BlockList; + BlockList * m_Blocks; + BlockList * m_Buffer; }; \ No newline at end of file -- cgit v1.2.3