diff options
author | madmaxoft <github@xoft.cz> | 2014-05-29 09:09:11 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-29 09:09:11 +0200 |
commit | 999662503a90e6acd4528be50f8b6232b357d9c3 (patch) | |
tree | 7a506f28f90b9cbd2393f7dcf9fa78971b4b3a77 | |
parent | cChunkData: Normalized code style. (diff) | |
download | cuberite-999662503a90e6acd4528be50f8b6232b357d9c3.tar cuberite-999662503a90e6acd4528be50f8b6232b357d9c3.tar.gz cuberite-999662503a90e6acd4528be50f8b6232b357d9c3.tar.bz2 cuberite-999662503a90e6acd4528be50f8b6232b357d9c3.tar.lz cuberite-999662503a90e6acd4528be50f8b6232b357d9c3.tar.xz cuberite-999662503a90e6acd4528be50f8b6232b357d9c3.tar.zst cuberite-999662503a90e6acd4528be50f8b6232b357d9c3.zip |
-rw-r--r-- | src/ChunkData.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ChunkData.cpp b/src/ChunkData.cpp index beee6c64a..172858e4e 100644 --- a/src/ChunkData.cpp +++ b/src/ChunkData.cpp @@ -318,7 +318,7 @@ void cChunkData::CopyBlocks(BLOCKTYPE * a_Dest, size_t a_Idx, size_t a_Length) if (a_Idx == 0) { size_t ToCopy = std::min(SegmentLength, a_Length); - length -= ToCopy; + a_Length -= ToCopy; if (m_Sections[i] != NULL) { memcpy( @@ -649,7 +649,7 @@ void cChunkData::SetSkyLight(const NIBBLETYPE * a_Src) -cChunkData::sChunkSection * cChunkData::Allocate(void) const +cChunkData::sChunkSection * cChunkData::Allocate(void) { // TODO: Use an allocation pool return new cChunkData::sChunkSection; @@ -659,7 +659,7 @@ cChunkData::sChunkSection * cChunkData::Allocate(void) const -void cChunkData::Free(cChunkData::sChunkSection * a_Section) const +void cChunkData::Free(cChunkData::sChunkSection * a_Section) { // TODO: Use an allocation pool delete a_Section; |