Reduced compile warnings (especially on clang)

This commit is contained in:
L 2023-02-07 20:49:31 +01:00
parent de40d640d5
commit f9e7f344be
15 changed files with 60 additions and 56 deletions

View file

@ -4837,8 +4837,8 @@ void ScriptThread::FadeSound
time = delaytime * 1000.0f;
gi.SendServerCommand( player != NULL ? player->edict - g_entities : NULL,
"fadesound2 %0.2f %f", time, min_vol );
gi.SendServerCommand(player != nullptr ? player->edict - g_entities : 0,
"fadesound2 %0.2f %f", time, min_vol);
}
void ScriptThread::RestoreSound