diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-26 14:13:44 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-26 14:13:44 +0100 |
commit | d8fa9c15d70eb6e8f82830c846a27aca85ef62a8 (patch) | |
tree | 20aa66a667f6dea2c33f0c63354c59bd57eb4026 /source | |
parent | Updated Core plugin to allow spawning items with damage/metadata, the damage/metadata can also be specified in items.ini (diff) | |
download | cuberite-d8fa9c15d70eb6e8f82830c846a27aca85ef62a8.tar cuberite-d8fa9c15d70eb6e8f82830c846a27aca85ef62a8.tar.gz cuberite-d8fa9c15d70eb6e8f82830c846a27aca85ef62a8.tar.bz2 cuberite-d8fa9c15d70eb6e8f82830c846a27aca85ef62a8.tar.lz cuberite-d8fa9c15d70eb6e8f82830c846a27aca85ef62a8.tar.xz cuberite-d8fa9c15d70eb6e8f82830c846a27aca85ef62a8.tar.zst cuberite-d8fa9c15d70eb6e8f82830c846a27aca85ef62a8.zip |
Diffstat (limited to 'source')
-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;
}
|