diff options
Diffstat (limited to 'source/cChunk.cpp')
-rw-r--r-- | source/cChunk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp index 7eb296abb..875cefebb 100644 --- a/source/cChunk.cpp +++ b/source/cChunk.cpp @@ -1200,9 +1200,9 @@ void cChunk::RemoveReference() int cChunk::GetReferenceCount()
{
- m_pState->ReferenceCriticalSection.Unlock();
- int Refs = m_pState->NumRefs;
m_pState->ReferenceCriticalSection.Lock();
+ int Refs = m_pState->NumRefs;
+ m_pState->ReferenceCriticalSection.Unlock();
return Refs;
}
|