diff options
author | madmaxoft <github@xoft.cz> | 2014-03-28 17:09:47 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-28 17:09:47 +0100 |
commit | 3c84a995a90122279cdb2f8cd60491e4d33c297f (patch) | |
tree | f1fe54ad66311ad63e72953fa5ebea9eba19eae3 | |
parent | Sponged the netherfort balcony prefab. (diff) | |
download | cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.gz cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.bz2 cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.lz cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.xz cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.tar.zst cuberite-3c84a995a90122279cdb2f8cd60491e4d33c297f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/NetherFortGen.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Generating/NetherFortGen.cpp b/src/Generating/NetherFortGen.cpp index 25658da46..d111c7cee 100644 --- a/src/Generating/NetherFortGen.cpp +++ b/src/Generating/NetherFortGen.cpp @@ -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), @@ -43,6 +44,12 @@ public: cBFSPieceGenerator pg(m_ParentGen, a_Seed); pg.PlacePieces(a_BlockX, BlockY, a_BlockZ, a_MaxDepth, m_Pieces); } + + + ~cNetherFort() + { + cPieceGenerator::FreePieces(m_Pieces); + } /** Carves the system into the chunk data */ |