1
0

Fixed chunkstays not being removed on auto-delete.

Fixes #837.
This commit is contained in:
madmaxoft
2014-04-12 22:15:09 +02:00
parent 83b25d085c
commit 75b7244f05
2 changed files with 19 additions and 10 deletions

View File

@@ -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);
}