Fix potential crash in logging

Doesn't happen for me for some reason, but does for Nemoumbra.
This commit is contained in:
Henrik Rydgård 2024-07-28 22:03:28 -06:00
parent 25a2353bde
commit 2e74efb2fc

View File

@ -57,6 +57,9 @@ ConsoleListener::ConsoleListener() : hidden_(true) {
_dbg_assert_(!g_Initialized);
g_Initialized = true;
logPendingReadPos_.store(0);
logPendingWritePos_.store(0);
}
ConsoleListener::~ConsoleListener() {