Index: src/engine/Debug.cpp |
=================================================================== |
--- a/src/engine/Debug.cpp |
+++ b/src/engine/Debug.cpp |
@@ -33,22 +33,26 @@ namespace |
} |
~Lock() |
{ |
LeaveCriticalSection(section); |
} |
private: |
LPCRITICAL_SECTION section; |
+ Lock(const Lock&); |
+ Lock& operator=(const Lock&); |
}; |
private: |
CRITICAL_SECTION section; |
+ CriticalSection(const CriticalSection&); |
+ CriticalSection& operator=(const CriticalSection&); |
}; |
- static CriticalSection debugLock; |
+ CriticalSection debugLock; |
} |
void Debug(const std::string& text) |
{ |
SYSTEMTIME st; |
::GetSystemTime(&st); |
char timeBuf[14]; |