crash and log fix (#1382)

This commit is contained in:
David Markowitz
2024-01-02 22:52:11 -08:00
committed by GitHub
parent bb79528c0e
commit a84ca1f00d
3 changed files with 13 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ Writer::~Writer() {
}
void Writer::Log(const char* time, const char* message) {
if (!m_Outfile) return;
if (!m_Outfile || !m_Enabled) return;
fputs(time, m_Outfile);
fputs(message, m_Outfile);