[Structs] Fix logfile definitions (#515)

This commit is contained in:
Edo
2022-10-09 14:40:17 -04:00
committed by GitHub
parent 47f170a36d
commit d48a6c073e
2 changed files with 3 additions and 3 deletions

View File

@ -177,9 +177,9 @@ namespace Components
const auto time = Game::level->time / 1000;
const auto len = _snprintf_s(string, _TRUNCATE, "%3i:%i%i %s", time / 60, time % 60 / 10, time % 60 % 10, string2);
if (Game::level->logFile != nullptr)
if (Game::level->logFile)
{
Game::FS_Write(string, len, reinterpret_cast<int>(Game::level->logFile));
Game::FS_Write(string, len, Game::level->logFile);
}
// Allow the network log to run even if logFile was not opened