From b885df36de706d87dcff07f97b9f98b5e88d9cde Mon Sep 17 00:00:00 2001 From: jeefo Date: Wed, 14 Sep 2016 18:36:31 +0300 Subject: [PATCH] fixing build, again --- source/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/engine.cpp b/source/engine.cpp index 124de7f..1dbbdc1 100644 --- a/source/engine.cpp +++ b/source/engine.cpp @@ -322,7 +322,7 @@ void Engine::RegisterCmd (const char * command, void func (void)) // pointed to by "function" in order to handle it. // check for hl pre 1.1.0.4, as it's doesn't have pfnAddServerCommand - if (!A_IsValidCodePointer (g_engfuncs.pfnAddServerCommand)) + if (!A_IsValidCodePointer (reinterpret_cast (g_engfuncs.pfnAddServerCommand))) AddLogEntry (true, LL_FATAL, "YaPB's minimum HL engine version is 1.1.0.4 and minimum Counter-Strike Beta 6.6. Please update your engine version."); g_engfuncs.pfnAddServerCommand (const_cast (command), func);