Fixed a memory leak in NetherFortGen.
This commit is contained in:
parent
ae0954f1d4
commit
3c84a995a9
@ -29,6 +29,7 @@ public:
|
||||
int m_Seed;
|
||||
cPlacedPieces m_Pieces;
|
||||
|
||||
|
||||
cNetherFort(cNetherFortGen & a_ParentGen, int a_BlockX, int a_BlockZ, int a_GridSize, int a_MaxDepth, int a_Seed) :
|
||||
m_ParentGen(a_ParentGen),
|
||||
m_BlockX(a_BlockX),
|
||||
@ -45,6 +46,12 @@ public:
|
||||
}
|
||||
|
||||
|
||||
~cNetherFort()
|
||||
{
|
||||
cPieceGenerator::FreePieces(m_Pieces);
|
||||
}
|
||||
|
||||
|
||||
/** Carves the system into the chunk data */
|
||||
void ProcessChunk(cChunkDesc & a_Chunk)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user