summaryrefslogtreecommitdiffstats
path: root/src/ChunkStay.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-12 22:35:04 +0200
committermadmaxoft <github@xoft.cz>2014-04-12 22:35:04 +0200
commit34cf058b0257587456632536a54db0d4e119dae1 (patch)
tree4bad77edfc6c1c7302df9bf218c65567dd348fb8 /src/ChunkStay.cpp
parentFixed chunkstays not being removed on auto-delete. (diff)
downloadcuberite-34cf058b0257587456632536a54db0d4e119dae1.tar
cuberite-34cf058b0257587456632536a54db0d4e119dae1.tar.gz
cuberite-34cf058b0257587456632536a54db0d4e119dae1.tar.bz2
cuberite-34cf058b0257587456632536a54db0d4e119dae1.tar.lz
cuberite-34cf058b0257587456632536a54db0d4e119dae1.tar.xz
cuberite-34cf058b0257587456632536a54db0d4e119dae1.tar.zst
cuberite-34cf058b0257587456632536a54db0d4e119dae1.zip
Diffstat (limited to 'src/ChunkStay.cpp')
-rw-r--r--src/ChunkStay.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ChunkStay.cpp b/src/ChunkStay.cpp
index a35ccf58c..b5002a63d 100644
--- a/src/ChunkStay.cpp
+++ b/src/ChunkStay.cpp
@@ -31,10 +31,7 @@ cChunkStay::~cChunkStay()
void cChunkStay::Clear(void)
{
- if (m_ChunkMap != NULL)
- {
- Disable();
- }
+ ASSERT(m_ChunkMap == NULL);
m_Chunks.clear();
}