2
0
mirror of https://github.com/rehlds/revoice.git synced 2025-03-03 17:15:25 +03:00

Remove redundant null check for g_engfuncs

This commit is contained in:
the_hunter 2025-02-25 10:04:55 +02:00
parent 80baf85885
commit 0ff6507dff

View File

@ -59,7 +59,7 @@ char *UTIL_VarArgs(char *format, ...)
void UTIL_ServerPrintf(const char *fmt, ...) void UTIL_ServerPrintf(const char *fmt, ...)
{ {
// Check is null, test the demo started before than searches pointer to refs // Check is null, test the demo started before than searches pointer to refs
if (&g_engfuncs == nullptr || g_engfuncs.pfnServerPrint == nullptr) if (g_engfuncs.pfnServerPrint == nullptr)
return; return;
static char string[1024]; static char string[1024];