From d48a6c073e141094682a01075f2db6c84711d455 Mon Sep 17 00:00:00 2001 From: Edo Date: Sun, 9 Oct 2022 14:40:17 -0400 Subject: [PATCH] [Structs] Fix logfile definitions (#515) --- src/Components/Modules/Logger.cpp | 4 ++-- src/Game/Structs.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/Logger.cpp b/src/Components/Modules/Logger.cpp index e620af4f..c798e2d7 100644 --- a/src/Components/Modules/Logger.cpp +++ b/src/Components/Modules/Logger.cpp @@ -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(Game::level->logFile)); + Game::FS_Write(string, len, Game::level->logFile); } // Allow the network log to run even if logFile was not opened diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index ab25c337..89712fba 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -8430,7 +8430,7 @@ namespace Game gentity_s* firstFreeEnt; gentity_s* lastFreeEnt; Turret* turrets; - void* logFile; + int logFile; int initializing; int clientIsSpawning; objective_t objectives[32];