diff --git a/core/HalfLife2.cpp b/core/HalfLife2.cpp index 1a578103..c4dd2283 100644 --- a/core/HalfLife2.cpp +++ b/core/HalfLife2.cpp @@ -143,6 +143,7 @@ void CHalfLife2::OnSourceModAllInitialized_Post() */ if (g_pGameConf->GetMemSig("gEntList", (void **)&addr)) { +#if !defined PLATFORM_WINDOWS if (!addr) { // Key exists so notify if lookup fails, but try other method. @@ -150,8 +151,11 @@ void CHalfLife2::OnSourceModAllInitialized_Post() } else { +#endif g_EntList = reinterpret_cast(addr); +#if !defined PLATFORM_WINDOWS } +#endif }