From a196a2aa7db167fb293cbbea59516c50c45b48c5 Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 13 Feb 2023 21:48:13 -0500 Subject: [PATCH] c --- src/blt/std/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blt/std/logging.cpp b/src/blt/std/logging.cpp index 85a347b..60b2730 100644 --- a/src/blt/std/logging.cpp +++ b/src/blt/std/logging.cpp @@ -50,9 +50,9 @@ namespace blt::logging { if (currentLines > MAX_LINES){ output->flush(); output->close(); - delete(output); currentLines = 0; auto currentTime = system::getTimeStringFS(); + delete(output); output = new std::fstream(m_path + currentTime + ".log"); } }