1
0
Fork 0

Fixed logging into debug console.

Was missing the LF at the end.
This commit is contained in:
madmaxoft 2013-08-12 08:42:18 +02:00
parent c628ab03e9
commit 27d0c9aef2
2 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,7 @@ void cLog::Log(const char * a_Format, va_list argList)
#if defined (_WIN32) && defined(_DEBUG)
// In a Windows Debug build, output the log to debug console as well:
OutputDebugStringA(Line.c_str());
OutputDebugStringA((Line + "\n").c_str());
#endif // _WIN32
}

View File

@ -75,7 +75,9 @@ cMCLogger::~cMCLogger()
m_Log->Log("--- Stopped Log ---\n");
delete m_Log;
if (this == s_MCLogger)
{
s_MCLogger = NULL;
}
}