Fixed logging into debug console.
Was missing the LF at the end.
This commit is contained in:
parent
c628ab03e9
commit
27d0c9aef2
@ -138,7 +138,7 @@ void cLog::Log(const char * a_Format, va_list argList)
|
|||||||
|
|
||||||
#if defined (_WIN32) && defined(_DEBUG)
|
#if defined (_WIN32) && defined(_DEBUG)
|
||||||
// In a Windows Debug build, output the log to debug console as well:
|
// In a Windows Debug build, output the log to debug console as well:
|
||||||
OutputDebugStringA(Line.c_str());
|
OutputDebugStringA((Line + "\n").c_str());
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,9 @@ cMCLogger::~cMCLogger()
|
|||||||
m_Log->Log("--- Stopped Log ---\n");
|
m_Log->Log("--- Stopped Log ---\n");
|
||||||
delete m_Log;
|
delete m_Log;
|
||||||
if (this == s_MCLogger)
|
if (this == s_MCLogger)
|
||||||
|
{
|
||||||
s_MCLogger = NULL;
|
s_MCLogger = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user