From 96da48401b0dbda2bbee3fb75178440320e16514 Mon Sep 17 00:00:00 2001 From: faketruth Date: Sun, 29 Jan 2012 21:51:36 +0000 Subject: Added missing #ifdef _DEBUG in cCriticalSection.cpp Should compile in Release and on Linux now git-svn-id: http://mc-server.googlecode.com/svn/trunk@191 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cCriticalSection.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source') 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(); } -- cgit v1.2.3