summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/cCriticalSection.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/cCriticalSection.cpp b/source/cCriticalSection.cpp
index bf27e9c0b..6bc6e805a 100644
--- a/source/cCriticalSection.cpp
+++ b/source/cCriticalSection.cpp
@@ -79,9 +79,11 @@ void cCriticalSection::Unlock()
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// cCSLock
-cCSLock::cCSLock(cCriticalSection * a_CS) :
- m_CS(a_CS),
- m_IsLocked(false)
+cCSLock::cCSLock(cCriticalSection * a_CS)
+ : m_CS(a_CS)
+ #ifdef _DEBUG
+ , m_IsLocked(false)
+ #endif
{
Lock();
}