From 404b1c5ed0285afea054ac49c7964eabe4f144af Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 29 Aug 2013 09:47:20 -0400 Subject: [PATCH] Fix build on non-windows. --- extensions/tf2/criticals.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/tf2/criticals.cpp b/extensions/tf2/criticals.cpp index 1c71472f..cf7252bb 100644 --- a/extensions/tf2/criticals.cpp +++ b/extensions/tf2/criticals.cpp @@ -34,7 +34,7 @@ CritManager g_CritManager; -IForward *g_critForward = nullptr; +IForward *g_critForward = NULL; SH_DECL_MANUALHOOK0(CalcIsAttackCriticalHelper, 0, 0, 0, bool); SH_DECL_MANUALHOOK0(CalcIsAttackCriticalHelperNoCrits, 0, 0, 0, bool); @@ -76,7 +76,7 @@ bool CritManager::TryEnable() for (size_t i = playerhelpers->GetMaxClients() + 1; i < MAX_EDICTS; ++i) { CBaseEntity *pEntity = gamehelpers->ReferenceToEntity(i); - if (pEntity == nullptr) + if (pEntity == NULL) continue; IServerUnknown *pUnknown = (IServerUnknown *)pEntity; @@ -177,7 +177,7 @@ bool CritManager::Hook_CalcIsAttackCriticalHelpers() CBaseHandle &hndl = *(CBaseHandle *) ((intptr_t)pWeapon + info.actual_offset); CBaseEntity *pHandleEntity = gamehelpers->ReferenceToEntity(hndl.GetEntryIndex()); - if (pHandleEntity != nullptr && hndl == reinterpret_cast(pHandleEntity)->GetRefEHandle()) + if (pHandleEntity != NULL && hndl == reinterpret_cast(pHandleEntity)->GetRefEHandle()) { ownerIndex = hndl.GetEntryIndex(); }