From 0ff6507dff80d0a72ea5159c0fabf1281ba74be3 Mon Sep 17 00:00:00 2001 From: the_hunter Date: Tue, 25 Feb 2025 10:04:55 +0200 Subject: [PATCH] Remove redundant null check for g_engfuncs --- revoice/src/sdk_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revoice/src/sdk_util.cpp b/revoice/src/sdk_util.cpp index f51ee96..dd6b2cf 100644 --- a/revoice/src/sdk_util.cpp +++ b/revoice/src/sdk_util.cpp @@ -59,7 +59,7 @@ char *UTIL_VarArgs(char *format, ...) void UTIL_ServerPrintf(const char *fmt, ...) { // 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; static char string[1024];