summaryrefslogtreecommitdiffstats
path: root/src/ChunkStay.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-12 22:15:09 +0200
committermadmaxoft <github@xoft.cz>2014-04-12 22:15:09 +0200
commit75b7244f0565170ccc40a3ebdf277945e5191be8 (patch)
treeb6d29ecdfffd8317608902794d61dc746421126d /src/ChunkStay.cpp
parentUpdated the NetherFort prefabs to current Gallery contents. (diff)
downloadcuberite-75b7244f0565170ccc40a3ebdf277945e5191be8.tar
cuberite-75b7244f0565170ccc40a3ebdf277945e5191be8.tar.gz
cuberite-75b7244f0565170ccc40a3ebdf277945e5191be8.tar.bz2
cuberite-75b7244f0565170ccc40a3ebdf277945e5191be8.tar.lz
cuberite-75b7244f0565170ccc40a3ebdf277945e5191be8.tar.xz
cuberite-75b7244f0565170ccc40a3ebdf277945e5191be8.tar.zst
cuberite-75b7244f0565170ccc40a3ebdf277945e5191be8.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkStay.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ChunkStay.cpp b/src/ChunkStay.cpp
index 6b1d5ee34..a35ccf58c 100644
--- a/src/ChunkStay.cpp
+++ b/src/ChunkStay.cpp
@@ -97,8 +97,9 @@ void cChunkStay::Disable(void)
{
ASSERT(m_ChunkMap != NULL);
- m_ChunkMap->DelChunkStay(*this);
+ cChunkMap * ChunkMap = m_ChunkMap;
m_ChunkMap = NULL;
+ ChunkMap->DelChunkStay(*this);
}