crash and log fix

This commit is contained in:
David Markowitz
2024-01-02 18:21:33 -08:00
parent bb79528c0e
commit 79bc6e73ff
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);