[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

View File

@ -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];